From c2457ff13d4fff0ecb04eb06ca903c3f62f01143 Mon Sep 17 00:00:00 2001 From: shenjiachi Date: Thu, 14 Nov 2024 18:00:23 +0800 Subject: [PATCH] update --- app/router/router.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/router/router.go b/app/router/router.go index 06e929b..20d5b78 100644 --- a/app/router/router.go +++ b/app/router/router.go @@ -52,9 +52,9 @@ func Init() *gin.Engine { func route(r *gin.RouterGroup) { r.GET("/test", hdl.Demo) r.POST("/login", hdl.Login) - //r.Use(mw.Auth) // 以下接口需要JWT验证 + r.Use(mw.Auth) // 以下接口需要JWT验证 rComm(r.Group("/comm")) - //r.Use(mw.CheckPermission) // 检测权限 + r.Use(mw.CheckPermission) // 检测权限 rInstitutionalManagement(r.Group("/institutionalManagement")) rSettCenter(r.Group("/settCenter")) }