WeChatSharerTalent.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?php
  2. /**
  3. * 厦门云联储网络科技有限公司
  4. * https://www.baokuaiyun.com
  5. * Copyright (c) 2023 爆块云 All rights reserved.
  6. */
  7. namespace app\models;
  8. use yii\behaviors\TimestampBehavior;
  9. /**
  10. * Class WeChatSharer
  11. * @package app\models
  12. * @property integer $id
  13. * @property integer $store_id
  14. * @property integer $bind_time
  15. * @property string $talent_appid
  16. * @property string $talent_nickname
  17. * @property string $talent_head_img
  18. * @property string $related_finder_exportname_list
  19. * @property string $related_mp_biz_appid_list
  20. * @property integer $type
  21. * @property string $shop_appid
  22. * @property integer $promoter_type
  23. **/
  24. class WeChatSharerTalent extends \yii\db\ActiveRecord
  25. {
  26. /**
  27. * @var mixed|null
  28. */
  29. public $mini_info;
  30. const WECHAT_SHARER_TALENT_TYPE = 1;
  31. const WECHAT_SHARER_SHOP_TYPE = 2;
  32. /**
  33. * @inheritdoc
  34. */
  35. public static function tableName()
  36. {
  37. return '{{%wechat_sharer_talent}}';
  38. }
  39. /**
  40. * @inheritdoc
  41. */
  42. public function rules()
  43. {
  44. return [
  45. [['id', 'store_id', 'bind_time', 'type', 'promoter_type'], 'integer'],
  46. [["talent_appid", "talent_nickname", "talent_head_img", "related_finder_exportname_list", "related_mp_biz_appid_list", "shop_appid"], 'string'],
  47. ];
  48. }
  49. /**
  50. * @inheritdoc
  51. */
  52. public function attributeLabels()
  53. {
  54. return [
  55. 'id' => "ID",
  56. 'store_id' => "商城ID",
  57. ];
  58. }
  59. }