BusinessMember.php 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?php
  2. /**
  3. * 厦门云联储网络科技有限公司
  4. * https://www.baokuaiyun.com
  5. * Copyright (c) 2023 爆块云 All rights reserved.
  6. */
  7. namespace app\models;
  8. class BusinessMember extends \yii\db\ActiveRecord
  9. {
  10. /**
  11. * @inheritdoc
  12. */
  13. public static function tableName()
  14. {
  15. return '{{%business_member}}';
  16. }
  17. /**
  18. * @inheritdoc
  19. */
  20. public function rules()
  21. {
  22. return [
  23. [['name','image','bg_image'], 'required'],
  24. [['sort', 'give', 'give_coupon', 'give_verify','give_self','commission_type', 'right_status','get_type'], 'integer'],
  25. [['image', 'bg_image','coupon_info','verify_info','right_ids','right_info','right_default','sale_info'], 'string'],
  26. [['commission_one','commission_two','commission_three', 'self_info'],'number']
  27. ];
  28. }
  29. /**
  30. * @inheritdoc
  31. */
  32. public function attributeLabels()
  33. {
  34. return [
  35. 'name' => '会员卡名称',
  36. 'image' => '图片',
  37. 'bg_image' => '背景图片',
  38. 'get_type' => '获取方式',
  39. 'sale_info' => '购买详情',
  40. 'give' => '赠送开关',
  41. 'give_coupon' => '优惠券赠送开关',
  42. 'give_verify' => '核销卡赠送开关',
  43. 'give_self' => '自购返利',
  44. 'coupon_info' => '赠送优惠券信息',
  45. 'verify_info' => '赠送卡券信息',
  46. 'self_info' => '返利佣金',
  47. 'commission_type' => '佣金类型:1百分比 2固定金额',
  48. 'commission_one' => '一级佣金',
  49. 'commission_two' => '二级佣金',
  50. 'commission_three' => '三级佣金',
  51. 'right_status' => '权益开关',
  52. 'right_ids' => '权利ids',
  53. 'right_info' => '权益信息',
  54. 'right_default' => '权益详情',
  55. ];
  56. }
  57. }