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:
+15
-13
@@ -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))
|
||||
|
||||
@@ -59,6 +59,7 @@ func Routers() {
|
||||
plantGroup.InitLevelConfigRouter(NeedAuthGroup) //等级配置
|
||||
plantGroup.InitBadgeConfigRouter(NeedAuthGroup) //徽章配置
|
||||
plantGroup.InitUserProfileRouter(NeedAuthGroup) //用户资料
|
||||
plantGroup.InitExchangeRouter(NeedAuthGroup) //兑换中心
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user