From 4324117e156e063cb2a266151724690bd295e180 Mon Sep 17 00:00:00 2001 From: wangpengfei <274878379@qq.com> Date: 星期二, 18 七月 2023 19:38:42 +0800 Subject: [PATCH] fix --- router/index.go | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/router/index.go b/router/index.go index f0fe7b7..b57c38c 100644 --- a/router/index.go +++ b/router/index.go @@ -49,6 +49,11 @@ OrderManageRouter ServiceFollowupRouter CustomerServiceSheetRouter + ServiceFeeManageRouter + AuthorityRouter + MenuRouter + DataRouter + DepartmentRouter } func InitRouter() *gin.Engine { @@ -76,7 +81,9 @@ } PrivateGroup := Router.Group("api") + //PrivateGroup.Use(middleware.JWTAuth()).Use(middleware.CasbinHandler()) //PrivateGroup.Use(middleware.JWTAuth()) + //PrivateGroup.Use(middleware.CasbinHandler()) { routerGroup.InitJwtRouter(PrivateGroup) // jwt鐩稿叧璺敱 routerGroup.InitUserRouter(PrivateGroup) // 娉ㄥ唽鐢ㄦ埛璺敱 @@ -115,6 +122,11 @@ routerGroup.InitOrderManageRouter(PrivateGroup) // 娉ㄥ唽orderManage璺敱 routerGroup.InitServiceFollowupRouter(PrivateGroup) // 娉ㄥ唽serviceFollowup璺敱 routerGroup.InitCustomerServiceSheetRouter(PrivateGroup) // 娉ㄥ唽customerServiceSheet璺敱 + routerGroup.InitServiceFeeManageRouter(PrivateGroup) // 娉ㄥ唽serviceFeeManage璺敱 + routerGroup.InitAuthorityRouter(PrivateGroup) // 娉ㄥ唽authority璺敱 + routerGroup.InitMenuRouter(PrivateGroup) // 娉ㄥ唽menu璺敱 + routerGroup.InitDataRouter(PrivateGroup) // 娉ㄥ唽data璺敱 + routerGroup.InitDepartmentRouter(PrivateGroup) // 娉ㄥ唽department璺敱 } return Router } -- Gitblit v1.8.0