From f7da9306eb62a7ccda30a002f2d4242c4e52cfa3 Mon Sep 17 00:00:00 2001
From: wangpengfei <274878379@qq.com>
Date: 星期四, 20 七月 2023 10:19:57 +0800
Subject: [PATCH] fix
---
router/index.go | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/router/index.go b/router/index.go
index f4bf5a5..b57c38c 100644
--- a/router/index.go
+++ b/router/index.go
@@ -50,6 +50,10 @@
ServiceFollowupRouter
CustomerServiceSheetRouter
ServiceFeeManageRouter
+ AuthorityRouter
+ MenuRouter
+ DataRouter
+ DepartmentRouter
}
func InitRouter() *gin.Engine {
@@ -77,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) // 娉ㄥ唽鐢ㄦ埛璺敱
@@ -117,6 +123,10 @@
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