附近小店
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

user_level.go 1.8 KiB

3 months ago
1234567891011121314151617181920212223
  1. package model
  2. import (
  3. "time"
  4. )
  5. type UserLevel struct {
  6. Id int `json:"id" xorm:"not null pk autoincr comment('等级id') INT(11)"`
  7. BenefitIds string `json:"benefit_ids" xorm:"comment('该等级拥有的权益id【json】') TEXT"`
  8. LevelName string `json:"level_name" xorm:"not null default '' comment('等级名称') VARCHAR(255)"`
  9. LevelWeight int `json:"level_weight" xorm:"not null default 0 comment('等级权重') INT(11)"`
  10. LevelUpdateCondition int `json:"level_update_condition" xorm:"not null default 2 comment('2是条件升级,1是无条件升级') TINYINT(1)"`
  11. AutoAudit int `json:"auto_audit" xorm:"not null default 0 comment('(自动审核)0关闭,1开启') TINYINT(1)"`
  12. AutoUpdate int `json:"auto_update" xorm:"not null default 0 comment('(自动升级)0关闭,1开启') TINYINT(1)"`
  13. LevelDate int `json:"level_date" xorm:"default 0 comment('会员有效期(0永久有效,单位月)') INT(11)"`
  14. IsUse int `json:"is_use" xorm:"not null default 1 comment('是否开启(0否,1是)') TINYINT(1)"`
  15. ChoosableNum int `json:"choosable_num" xorm:"default 0 comment('可选任务数量(当is_must_task为0时生效)') INT(6)"`
  16. BeforeHide int `json:"before_hide" xorm:"default 0 comment('可选任务数量(当is_must_task为0时生效)') INT(6)"`
  17. Label int `json:"label" xorm:"default 0 comment('') INT(6)"`
  18. Memo string `json:"memo" xorm:"default '' comment('备注') VARCHAR(255)"`
  19. CssSet string `json:"css_set" xorm:"TEXT"`
  20. CreateAt time.Time `json:"create_at" xorm:"not null default CURRENT_TIMESTAMP TIMESTAMP"`
  21. }