Commit a63ccf1d authored by hujiebin's avatar hujiebin

feat:部分接口加密

parent be03fcc6
...@@ -17,7 +17,6 @@ import ( ...@@ -17,7 +17,6 @@ import (
func InitRouter() *gin.Engine { func InitRouter() *gin.Engine {
var r = gin.Default() var r = gin.Default()
r.Use(EncryptHandle)
r.GET("/user-swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler)) r.GET("/user-swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler))
...@@ -29,8 +28,8 @@ func InitRouter() *gin.Engine { ...@@ -29,8 +28,8 @@ func InitRouter() *gin.Engine {
{ {
user.GET("/nameplate", wrapper(user_r.UserNameplate)) user.GET("/nameplate", wrapper(user_r.UserNameplate))
user.GET("/bag/:resType", wrapper(user_r.UserBag)) user.GET("/bag/:resType", wrapper(user_r.UserBag))
user.GET("/detail", wrapper(user_r.UserDetail)) user.GET("/detail", EncryptHandle, wrapper(user_r.UserDetail))
user.GET("/detail/:userExternalId", wrapper(user_r.UserDetailByExternalId)) user.GET("/detail/:userExternalId", EncryptHandle, wrapper(user_r.UserDetailByExternalId))
} }
cp := v2.Group("/cp") cp := v2.Group("/cp")
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment