SmsSetting.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php
  2. /**
  3. * 厦门云联储网络科技有限公司
  4. * https://www.baokuaiyun.com
  5. * Copyright (c) 2023 爆块云 All rights reserved.
  6. */
  7. /*
  8. * @Author:
  9. * @Date: 2021-04-06 09:38:04
  10. * @LastEditTime: 2021-04-23 17:45:58
  11. * @LastEditors: Please set LastEditors
  12. * @Description: In User Settings Edit
  13. * @FilePath: \admin_php\models\SmsSetting.php
  14. */
  15. namespace app\models;
  16. use Yii;
  17. /**
  18. * This is the model class for table "{{%sms_setting}}".
  19. *
  20. * @property integer $id
  21. * @property integer $store_id
  22. * @property string $AccessKeyId
  23. * @property string $AccessKeySecret
  24. * @property string $sign
  25. * @property integer $created_at
  26. */
  27. class SmsSetting extends \yii\db\ActiveRecord
  28. {
  29. /**
  30. * @inheritdoc
  31. */
  32. public static function tableName()
  33. {
  34. return '{{%sms_setting}}';
  35. }
  36. /**
  37. * @inheritdoc
  38. */
  39. public function rules()
  40. {
  41. return [
  42. [['store_id', 'created_at'], 'integer'],
  43. [['AccessKeyId', 'AccessKeySecret', 'sign'], 'string', 'max' => 255],
  44. ];
  45. }
  46. /**
  47. * @inheritdoc
  48. */
  49. public function attributeLabels()
  50. {
  51. return [
  52. 'id' => 'ID',
  53. 'store_id' => 'Store ID',
  54. 'AccessKeyId' => '阿里云AccessKeyId',
  55. 'AccessKeySecret' => '阿里云AccessKeySecret',
  56. 'sign' => '短信模板签名',
  57. 'created_at' => 'Addtime'
  58. ];
  59. }
  60. }