feat: 异步校验社区post文本内容是否违规
This commit is contained in:
+13
-12
@@ -39,18 +39,19 @@ func MigrateTable() {
|
||||
system.SysOperationRecord{},
|
||||
system.Oss{},
|
||||
|
||||
plant.MyPlant{}, //我的植物
|
||||
plant.CarePlan{}, //植物养护计划
|
||||
plant.CareTask{}, //植物养护任务
|
||||
plant.CareRecord{}, //植物养护记录
|
||||
plant.GrowthRecord{}, //植物成长记录
|
||||
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{}, //徽章配置
|
||||
|
||||
@@ -35,7 +35,8 @@ func Routers() {
|
||||
NeedAuthGroup.Use(middleware.AuthMiddleware())
|
||||
{
|
||||
//无须鉴权的路由
|
||||
systemRouter.InitAuthRouter(PublicGroup) //登录不需要鉴权
|
||||
systemRouter.InitAuthRouter(PublicGroup) //登录不需要鉴权
|
||||
plantGroup.InitCallbackRouter(PublicGroup) // 回调
|
||||
}
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user