Commit 7d3b3319 authored by hujiebin's avatar hujiebin

feature/encrypt

parent a6e765c2
......@@ -17,6 +17,7 @@ import (
func InitRouter() *gin.Engine {
var r = gin.Default()
r.Use(EncryptHandle)
r.GET("/user-swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler))
......@@ -28,8 +29,8 @@ func InitRouter() *gin.Engine {
{
user.GET("/nameplate", wrapper(user_r.UserNameplate))
user.GET("/bag/:resType", wrapper(user_r.UserBag))
user.GET("/detail", EncryptHandle, wrapper(user_r.UserDetail))
user.GET("/detail/:userExternalId", EncryptHandle, wrapper(user_r.UserDetailByExternalId))
user.GET("/detail", wrapper(user_r.UserDetail))
user.GET("/detail/:userExternalId", wrapper(user_r.UserDetailByExternalId))
}
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