StoreMedia.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. /**
  3. * 厦门云联储网络科技有限公司
  4. * https://www.baokuaiyun.com
  5. * Copyright (c) 2023 爆块云 All rights reserved.
  6. */
  7. namespace app\models;
  8. /**
  9. * Class StoreMedia
  10. * @package app\models
  11. * @property integer $id
  12. * @property integer $store_id
  13. * @property string $media_id
  14. * @property integer $mini_id
  15. * @property string $event
  16. * @property string $desc
  17. * @property string $local_url
  18. * @property integer $type
  19. **/
  20. class StoreMedia extends \yii\db\ActiveRecord
  21. {
  22. /**
  23. * @inheritdoc
  24. */
  25. public static function tableName()
  26. {
  27. return '{{%store_media}}';
  28. }
  29. /**
  30. * @inheritdoc
  31. */
  32. public function rules()
  33. {
  34. return [
  35. [["id", "store_id", "mini_id", 'type'], 'integer'],
  36. [["media_id", "event", "desc","local_url"], 'string'],
  37. ];
  38. }
  39. /**
  40. * @inheritdoc
  41. */
  42. public function attributeLabels()
  43. {
  44. return [
  45. "id"=> "ID",
  46. "store_id"=> "商城ID",
  47. "media_id"=> "微信素材ID",
  48. "mini_id"=> "小程序id",
  49. "event"=> "事件名称",
  50. "desc"=> "事件备注",
  51. "local_url"=> "本机地址",
  52. 'type' => '类型 0图片 1视频'
  53. ];
  54. }
  55. }