feat: 等级配置
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package plant
|
||||
|
||||
import (
|
||||
"sundynix-go/config"
|
||||
"sundynix-go/global"
|
||||
)
|
||||
|
||||
// BadgeConfig 徽章配置
|
||||
type BadgeConfig struct {
|
||||
global.BaseModel
|
||||
GroupId string `json:"group_id"` // 徽章组 (用于系列徽章,如浇水铜/银/金)
|
||||
Name string `json:"name"` // 徽章名称
|
||||
Description string `json:"description"` // 描述
|
||||
Tier config.BadgeTier `json:"tier"` // 稀有度
|
||||
TargetAction config.ActionType `json:"target_action"` // 关联的行为
|
||||
TargetCount int `json:"target_count"` // 需要完成该行为的次数
|
||||
IconURL string `json:"icon_url"` // 徽章图标地址
|
||||
}
|
||||
Reference in New Issue
Block a user