feat: 等级配置
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
package config
|
||||
|
||||
// ActionType 定义养护行为类型
|
||||
type ActionType string
|
||||
|
||||
const (
|
||||
ActionWater ActionType = "WATER" // 浇水
|
||||
ActionFertilize ActionType = "FERTILIZE" // 施肥
|
||||
ActionPrune ActionType = "PRUNE" // 修剪
|
||||
ActionPhoto ActionType = "PHOTO" // 拍照
|
||||
ActionLogin ActionType = "LOGIN" // 每日签到
|
||||
)
|
||||
|
||||
// BadgeTier 定义徽章的稀有度
|
||||
type BadgeTier int
|
||||
|
||||
const (
|
||||
TierBronze BadgeTier = 1 // 铜
|
||||
TierSilver BadgeTier = 2 // 银
|
||||
TierGold BadgeTier = 3 // 金
|
||||
TierDiamond BadgeTier = 4 // 钻石
|
||||
)
|
||||
Reference in New Issue
Block a user