WeChatSharer.php 1.4 KB

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