Files
2026-02-11 11:37:35 +08:00

16 lines
758 B
Go

package request
type CreateLevelConf struct {
Level int `json:"level"` // 等级数值
Title string `json:"title"` // 等级称号 (e.g., "萌芽园丁")
MinSunlight int64 `json:"minSunlight"` // 达到该等级所需的最小阳光值
Perks string `json:"perks"` // 解锁权益描述 (e.g., "解锁智能诊断")
}
type UpdateLevelConf struct {
Id string `json:"id" binding:"required"`
Level int `json:"level"` // 等级数值
Title string `json:"title"` // 等级称号 (e.g., "萌芽园丁")
MinSunlight int64 `json:"minSunlight"` // 达到该等级所需的最小阳光值
Perks string `json:"perks"` // 解锁权益描述 (e.g., "解锁智能诊断")
}