| 12345678910111213141516171819202122232425262728293031 |
- package entity
- // DtUserLevel 用户等级表
- type DtUserLevel struct {
- MysqlBaseModel
- Name string `json:"name" gorm:"type:varchar(64);comment:等级名称"`
- NameVi string `json:"nameVi" gorm:"type:varchar(64);comment:等级名称(越南语)"`
- Icon string `json:"icon" gorm:"type:varchar(255);comment:等级图标"`
- Level int `json:"level" gorm:"default:0;index:idx_level;comment:等级序号"`
- Price float64 `json:"price" gorm:"type:decimal(18,2);default:0.00;comment:开通价格(USDT)"`
- DailyTaskLimit int `json:"dailyTaskLimit" gorm:"default:0;comment:每日任务上限"`
- CommissionRate float64 `json:"commissionRate" gorm:"type:decimal(5,2);default:0.00;comment:任务佣金比例(%)"`
- InviteReward float64 `json:"inviteReward" gorm:"type:decimal(18,2);default:0.00;comment:邀请奖励(USDT)"`
- InviteCommissionRate float64 `json:"inviteCommissionRate" gorm:"type:decimal(5,2);default:0.00;comment:邀请返佣比例(%)"`
- Description string `json:"description" gorm:"type:varchar(512);comment:等级说明"`
- Privileges string `json:"privileges" gorm:"type:json;comment:等级特权列表"`
- Status int8 `json:"status" gorm:"default:1;comment:状态: 0=禁用 1=启用"`
- Sort int `json:"sort" gorm:"default:0;comment:排序"`
- }
- func (*DtUserLevel) TableName() string {
- return "dt_user_level"
- }
- func (*DtUserLevel) Comment() string {
- return "用户等级表"
- }
- func NewDtUserLevel() *DtUserLevel {
- return &DtUserLevel{}
- }
|