MchSetting.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?php
  2. /**
  3. * 厦门云联储网络科技有限公司
  4. * https://www.baokuaiyun.com
  5. * Copyright (c) 2023 爆块云 All rights reserved.
  6. */
  7. namespace app\models;
  8. use Yii;
  9. /**
  10. * This is the model class for table "{{%mch_setting}}".
  11. *
  12. * @property integer $id
  13. * @property integer $mch_id
  14. * @property integer $store_id
  15. * @property integer $is_share
  16. * @property float $first
  17. * @property float $second
  18. * @property float $third
  19. * @property string $first_name
  20. * @property string $second_name
  21. * @property string $third_name
  22. * @property integer $price_type
  23. * @property integer $is_rebate
  24. */
  25. class MchSetting extends \yii\db\ActiveRecord
  26. {
  27. /**
  28. * @inheritdoc
  29. */
  30. public static function tableName()
  31. {
  32. return '{{%mch_setting}}';
  33. }
  34. /**
  35. * @inheritdoc
  36. */
  37. public function rules()
  38. {
  39. return [
  40. [['mch_id', 'store_id', 'is_share', 'price_type', 'is_rebate'], 'integer'],
  41. [['first', 'second', 'third'], 'number'],
  42. [['first_name', 'second_name', 'third_name'], 'string', 'max' => 255],
  43. ];
  44. }
  45. /**
  46. * @inheritdoc
  47. */
  48. public function attributeLabels()
  49. {
  50. return [
  51. 'id' => 'ID',
  52. 'mch_id' => 'Mch ID',
  53. 'store_id' => 'Store ID',
  54. 'is_share' => '是否开启分销 0--不开启 1--开启',
  55. 'first' => '一级佣金比例',
  56. 'second' => '二级佣金比例',
  57. 'third' => '三级佣金比例',
  58. 'first_name' => '一级名称',
  59. 'second_name' => '二级名称',
  60. 'third_name' => '三级名称',
  61. 'price_type' => '佣金配比',
  62. 'is_rebate' => '是否开启自购返利'
  63. ];
  64. }
  65. }