Account.php 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php
  2. namespace addons\WechatMini\common\models\video\account;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%addon_wechat_mini_video_account}}".
  6. *
  7. * @property int $id
  8. * @property int|null $merchant_id
  9. * @property int|null $store_id 门店ID
  10. * @property string|null $service_agent_path 客服地址
  11. * @property string|null $service_agent_phone 客服联系方式
  12. * @property string|null $service_agent_type 客服类型 支持多个,0: 小程序官方客服,1: 自定义客服path 2: 联系电话
  13. * @property string|null $default_receiving_address 默认退货地址
  14. * @property int|null $status 状态(-1:已删除,0:禁用,1:正常)
  15. * @property int|null $created_at 创建时间
  16. * @property int|null $updated_at 修改时间
  17. */
  18. class Account extends \common\models\base\BaseModel
  19. {
  20. /**
  21. * {@inheritdoc}
  22. */
  23. public static function tableName()
  24. {
  25. return '{{%addon_wechat_mini_video_account}}';
  26. }
  27. /**
  28. * {@inheritdoc}
  29. */
  30. public function rules()
  31. {
  32. return [
  33. [['merchant_id', 'store_id', 'status', 'created_at', 'updated_at'], 'integer'],
  34. [['service_agent_type', 'default_receiving_address'], 'safe'],
  35. [['service_agent_path', 'service_agent_phone'], 'string', 'max' => 255],
  36. ];
  37. }
  38. /**
  39. * {@inheritdoc}
  40. */
  41. public function attributeLabels()
  42. {
  43. return [
  44. 'id' => 'ID',
  45. 'merchant_id' => 'Merchant ID',
  46. 'store_id' => '门店ID',
  47. 'service_agent_path' => '客服地址',
  48. 'service_agent_phone' => '客服联系方式',
  49. 'service_agent_type' => '客服类型',
  50. 'default_receiving_address' => '默认退货地址',
  51. 'status' => '状态(-1:已删除,0:禁用,1:正常)',
  52. 'created_at' => '创建时间',
  53. 'updated_at' => '修改时间',
  54. ];
  55. }
  56. }
粤ICP备19079148号