feat: Add callback and exchange features, refactor care plan task generation logic, and update wiki ordering to prioritize hot items.

This commit is contained in:
Blizzard
2026-02-26 08:57:13 +08:00
parent 9d4a5c6375
commit 3f05dccdce
23 changed files with 955 additions and 56 deletions
+15 -13
View File
@@ -39,19 +39,19 @@ func MigrateTable() {
system.SysOperationRecord{},
system.Oss{},
plant.MyPlant{}, //我的植物
plant.CarePlan{}, //植物养护计划
plant.CareTask{}, //植物养护任务
plant.CareRecord{}, //植物养护记录
plant.GrowthRecord{}, //植物成长记录
plant.MediaCheckResult{}, //媒体安全检测结果
plant.Topic{}, //帖子话题
plant.Post{}, //帖子
plant.PostLike{}, //帖子点赞
plant.PostComment{}, //帖子评论
plant.Class{}, //百科分类
plant.Wiki{}, //百科植物
plant.ClassifyRecord{}, //植物识别记录
plant.MyPlant{}, //我的植物
plant.CarePlan{}, //植物养护计划
plant.CareTask{}, //植物养护任务
plant.CareRecord{}, //植物养护记录
plant.GrowthRecord{}, //植物成长记录
//plant.MediaCheckResult{}, //媒体安全检测结果
plant.Topic{}, //帖子话题
plant.Post{}, //帖子
plant.PostLike{}, //帖子点赞
plant.PostComment{}, //帖子评论
plant.Class{}, //百科分类
plant.Wiki{}, //百科植物
plant.ClassifyRecord{}, //植物识别记录
plant.LevelConfig{}, //等级配置
plant.BadgeConfig{}, //徽章配置
@@ -59,6 +59,8 @@ func MigrateTable() {
plant.UserBadge{}, //用户徽章
plant.UserStar{}, //用户收藏
plant.ExchangeItem{}, //兑换商品
plant.ExchangeOrder{}, //兑换订单
)
if err != nil {
global.Logger.Error("Migrate table failed,err:", zap.Error(err))