19 lines
1.4 KiB
Go
19 lines
1.4 KiB
Go
package model
|
||
|
||
// VipLevel VIP等级配置表:5 个等级的价格与权益(后台可调)
|
||
type VipLevel struct {
|
||
ID int `gorm:"primaryKey" json:"id"` // 配置ID
|
||
Level int `gorm:"uniqueIndex" json:"level"` // VIP等级(1~5)
|
||
Name string `gorm:"size:32" json:"name"` // 等级名称(青铜卡/白银卡…)
|
||
Icon string `gorm:"size:16" json:"icon"` // emoji 图标
|
||
PricePoints int `gorm:"default:0" json:"price_points"` // 开通/续费价格(积分,按30天计)
|
||
WeeklyFreeQuota int `gorm:"column:weekly_free_quota;default:0" json:"weekly_free_quota"` // 每周免费游玩的付费游戏数量(周免批次大小)
|
||
SigninBonus int `gorm:"column:signin_bonus;default:0" json:"signin_bonus"` // 每日签到额外加成积分
|
||
Description string `gorm:"size:255" json:"description"` // 权益描述
|
||
CreatedAt int64 `gorm:"autoCreateTime" json:"created_at"` // 创建时间(int 时间戳)
|
||
UpdatedAt int64 `gorm:"autoUpdateTime" json:"updated_at"` // 更新时间(int 时间戳)
|
||
}
|
||
|
||
// TableName 指定表名
|
||
func (VipLevel) TableName() string { return "vip_levels" }
|