From 5f00d720ea52ababeb10954da4d33ab6c46e93b7 Mon Sep 17 00:00:00 2001 From: wangpengfei <274878379@qq.com> Date: 星期五, 14 七月 2023 17:47:13 +0800 Subject: [PATCH] add --- router/index.go | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/router/index.go b/router/index.go index f4bf5a5..86e30e3 100644 --- a/router/index.go +++ b/router/index.go @@ -50,6 +50,8 @@ ServiceFollowupRouter CustomerServiceSheetRouter ServiceFeeManageRouter + AuthorityRouter + MenuRouter } func InitRouter() *gin.Engine { @@ -77,7 +79,7 @@ } PrivateGroup := Router.Group("api") - //PrivateGroup.Use(middleware.JWTAuth()) + //PrivateGroup.Use(middleware.JWTAuth()).Use(middleware.CasbinHandler()) { routerGroup.InitJwtRouter(PrivateGroup) // jwt鐩稿叧璺敱 routerGroup.InitUserRouter(PrivateGroup) // 娉ㄥ唽鐢ㄦ埛璺敱 @@ -117,6 +119,8 @@ routerGroup.InitServiceFollowupRouter(PrivateGroup) // 娉ㄥ唽serviceFollowup璺敱 routerGroup.InitCustomerServiceSheetRouter(PrivateGroup) // 娉ㄥ唽customerServiceSheet璺敱 routerGroup.InitServiceFeeManageRouter(PrivateGroup) // 娉ㄥ唽serviceFeeManage璺敱 + routerGroup.InitAuthorityRouter(PrivateGroup) // 娉ㄥ唽authority璺敱 + routerGroup.InitMenuRouter(PrivateGroup) // 娉ㄥ唽menu璺敱 } return Router } -- Gitblit v1.8.0