From ac194434078ffa440c8cb18e2bd7594451f22dc4 Mon Sep 17 00:00:00 2001 From: shenjiachi Date: Wed, 13 Nov 2024 18:43:28 +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 caf30e1..d07e6d5 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")) }