feat: 个人中心发布

This commit is contained in:
Blizzard
2026-02-14 11:38:59 +08:00
parent f1d9f63296
commit 4820323381
35 changed files with 691 additions and 148 deletions
+11
View File
@@ -0,0 +1,11 @@
package response
import "sundynix-go/model/plant"
// TaskCompletionResult 定义返回给前端的组合对象
type TaskCompletionResult struct {
NewBadge *plant.BadgeConfig `json:"newBadge"` // 本次新获得的徽章,无则为 nil
CurrentLevel *plant.LevelConfig `json:"currentLevel"` // 当前最新的等级信息
IsLevelUp bool `json:"isLevelUp"` // 是否升级了
IsGetBadge bool `json:"isGetBadge"` // 本次任务是否获得徽章
}