feat: 等级配置
This commit is contained in:
@@ -52,6 +52,8 @@ func MigrateTable() {
|
||||
plant.Wiki{}, //百科植物
|
||||
plant.ClassifyRecord{}, //植物识别记录
|
||||
|
||||
plant.LevelConfig{}, //等级配置
|
||||
|
||||
)
|
||||
if err != nil {
|
||||
global.Logger.Error("Migrate table failed,err:", zap.Error(err))
|
||||
|
||||
@@ -49,12 +49,13 @@ func Routers() {
|
||||
|
||||
{
|
||||
//需要鉴权的路由
|
||||
plantGroup.InitPlantRouter(NeedAuthGroup) // 植物相关
|
||||
plantGroup.InitTopicRouter(NeedAuthGroup) // 帖子话题
|
||||
plantGroup.InitPostRouter(NeedAuthGroup) // 帖子相关
|
||||
plantGroup.InitWikiClassRouter(NeedAuthGroup) //百科分类
|
||||
plantGroup.InitWikiRouter(NeedAuthGroup) //百科
|
||||
plantGroup.InitOcrRouter(NeedAuthGroup) // ocr识别
|
||||
plantGroup.InitPlantRouter(NeedAuthGroup) // 植物相关
|
||||
plantGroup.InitTopicRouter(NeedAuthGroup) // 帖子话题
|
||||
plantGroup.InitPostRouter(NeedAuthGroup) // 帖子相关
|
||||
plantGroup.InitWikiClassRouter(NeedAuthGroup) //百科分类
|
||||
plantGroup.InitWikiRouter(NeedAuthGroup) //百科
|
||||
plantGroup.InitOcrRouter(NeedAuthGroup) // ocr识别
|
||||
plantGroup.InitLevelConfigRouter(NeedAuthGroup) //等级配置
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user