WechatVideoShopEvents.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php
  2. namespace addons\WechatVideoShop\common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "qimall_addons_wechat_video_shop_events".
  6. *
  7. * @property int $id
  8. * @property int $mall_id
  9. * @property int $status 状态[1启用 0禁用 -1删除]
  10. * @property int $created_at 创建时间
  11. * @property int $updated_at 更新事件
  12. * @property array $req 请求数据
  13. * @property string $org_post 加密数据
  14. * @property array $post 解密后的数据
  15. * @property array $exception 异常
  16. */
  17. class WechatVideoShopEvents extends \common\models\base\BaseActiveRecord
  18. {
  19. /**
  20. * {@inheritdoc}
  21. */
  22. public static function tableName()
  23. {
  24. return 'qimall_addons_wechat_video_shop_events';
  25. }
  26. /**
  27. * {@inheritdoc}
  28. */
  29. public function rules()
  30. {
  31. return [
  32. [['mall_id', 'status', 'created_at', 'updated_at'], 'integer'],
  33. // [['req', 'org_post', 'post', 'exception'], 'required'],
  34. [['req', 'post', 'exception'], 'safe'],
  35. [['org_post'], 'string'],
  36. ];
  37. }
  38. /**
  39. * {@inheritdoc}
  40. */
  41. public function attributeLabels()
  42. {
  43. return [
  44. 'id' => 'ID',
  45. 'mall_id' => 'Mall ID',
  46. 'status' => 'Status',
  47. 'created_at' => 'Created At',
  48. 'updated_at' => 'Updated At',
  49. 'req' => 'Req',
  50. 'org_post' => 'Org Post',
  51. 'post' => 'Post',
  52. 'exception' => 'Exception',
  53. ];
  54. }
  55. }