From 49383f9cf9a8c313a11d3a5fd98fd3059f03c889 Mon Sep 17 00:00:00 2001 From: shenjiachi Date: Tue, 12 Nov 2024 09:38:17 +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 682aab2..c76bad5 100644 --- a/app/router/router.go +++ b/app/router/router.go @@ -51,9 +51,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")) }