QiShangTongEvent.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. namespace addons\QiShangTong\common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "qimall_addons_qi_shang_tong_event".
  6. *
  7. * @property int $id ID
  8. * @property int $mall_id 商城ID
  9. * @property int $created_at 创建时间
  10. * @property int $updated_at 更新时间
  11. * @property int $status 状态
  12. * @property string $type 类型
  13. * @property array|null $post 提交过来的数据
  14. * @property array|null $content 解密后的数据
  15. * @property array|null $err 错误信息
  16. */
  17. class QiShangTongEvent extends \common\models\base\BaseActiveRecord
  18. {
  19. /**
  20. * {@inheritdoc}
  21. */
  22. public static function tableName()
  23. {
  24. return 'qimall_addons_qi_shang_tong_event';
  25. }
  26. /**
  27. * {@inheritdoc}
  28. */
  29. public function rules()
  30. {
  31. return [
  32. [['mall_id', 'created_at', 'updated_at', 'status'], 'integer'],
  33. [['post', 'content', 'err'], 'safe'],
  34. [['type'], 'string', 'max' => 10],
  35. ];
  36. }
  37. /**
  38. * {@inheritdoc}
  39. */
  40. public function attributeLabels()
  41. {
  42. return [
  43. 'id' => 'ID',
  44. 'mall_id' => 'Mall ID',
  45. 'created_at' => 'Created At',
  46. 'updated_at' => 'Updated At',
  47. 'status' => 'Status',
  48. 'type' => 'Type',
  49. 'post' => 'Post',
  50. 'content' => 'Content',
  51. 'error' => 'Error',
  52. ];
  53. }
  54. }