WeChatSharerProduct.php 1.2 KB

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