feat: 徽章api
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
package request
|
||||
|
||||
type CreateBadge struct {
|
||||
Name string `json:"name"`
|
||||
Description string `json:"description"`
|
||||
IconId string `json:"iconId"`
|
||||
Dimension string `json:"dimension"` // 维度: EXPERTISE(专家), PERSISTENCE(勤勉), JOURNAL(记录)
|
||||
GroupId string `json:"groupId"` // 组ID: 用于前端聚合显示 (e.g. "fertilizerMaster")
|
||||
Tier int `json:"tier"` // 等级: 1=铜, 2=银, 3=金
|
||||
TargetAction string `json:"targetAction"` // 触发动作: ACT_FERTILIZE, ACT_WATER...
|
||||
Threshold int64 `json:"threshold"`
|
||||
Comparator string `json:"comparator"`
|
||||
RewardSunlight int64 `json:"rewardSunlight"`
|
||||
Sort int `json:"sort"`
|
||||
}
|
||||
|
||||
type UpdateBadge struct {
|
||||
Id string `json:"id" binding:"required"`
|
||||
Name string `json:"name"`
|
||||
Description string `json:"description"`
|
||||
IconId string `json:"iconId"`
|
||||
Dimension string `json:"dimension"` // 维度: EXPERTISE(专家), PERSISTENCE(勤勉), JOURNAL(记录)
|
||||
GroupId string `json:"groupId"` // 组Id: 用于前端聚合显示 (e.g. "fertilizerMaster")
|
||||
Tier int `json:"tier"` // 等级: 1=铜, 2=银, 3=金
|
||||
TargetAction string `json:"targetAction"` // 触发动作: ACT_FERTILIZE, ACT_WATER...
|
||||
Threshold int64 `json:"threshold"`
|
||||
Comparator string `json:"comparator"`
|
||||
RewardSunlight int64 `json:"rewardSunlight"`
|
||||
Sort int `json:"sort"`
|
||||
}
|
||||
Reference in New Issue
Block a user