Files
nl-game-api/internal/model/vip.go
2026-08-14 13:17:03 +08:00

19 lines
1.4 KiB
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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" }