From a63ccf1d18a53c3c48c9c35ecbfa73953b655863 Mon Sep 17 00:00:00 2001 From: hujiebin Date: Sun, 25 Jun 2023 17:08:45 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E9=83=A8=E5=88=86=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E5=8A=A0=E5=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- route/router.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/route/router.go b/route/router.go index 07fefc3..fb97213 100755 --- a/route/router.go +++ b/route/router.go @@ -17,7 +17,6 @@ import ( func InitRouter() *gin.Engine { var r = gin.Default() - r.Use(EncryptHandle) r.GET("/user-swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler)) @@ -29,8 +28,8 @@ func InitRouter() *gin.Engine { { user.GET("/nameplate", wrapper(user_r.UserNameplate)) user.GET("/bag/:resType", wrapper(user_r.UserBag)) - user.GET("/detail", wrapper(user_r.UserDetail)) - user.GET("/detail/:userExternalId", wrapper(user_r.UserDetailByExternalId)) + user.GET("/detail", EncryptHandle, wrapper(user_r.UserDetail)) + user.GET("/detail/:userExternalId", EncryptHandle, wrapper(user_r.UserDetailByExternalId)) } cp := v2.Group("/cp") { -- 2.22.0