refactor: 1.修正api auth 2.帖子话题业务
This commit is contained in:
@@ -43,6 +43,7 @@ func MigrateTable() {
|
||||
plant.CarePlan{}, //植物养护计划
|
||||
plant.CareTask{}, //植物养护任务
|
||||
plant.CareRecord{}, //植物养护记录
|
||||
plant.Topic{}, //帖子话题
|
||||
plant.Post{}, //帖子
|
||||
plant.PostLike{}, //帖子点赞
|
||||
plant.PostComment{}, //帖子评论
|
||||
|
||||
@@ -50,6 +50,7 @@ func Routers() {
|
||||
{
|
||||
//需要鉴权的路由
|
||||
plantGroup.InitPlantRouter(NeedAuthGroup) // 植物相关
|
||||
plantGroup.InitTopicRouter(NeedAuthGroup) // 帖子话题
|
||||
plantGroup.InitPostRouter(NeedAuthGroup) // 帖子相关
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user