🔒 token encryption

This commit is contained in:
landaiqing
2024-08-14 19:57:37 +08:00
parent 368adadf52
commit 55759a33db
19 changed files with 241 additions and 39 deletions

View File

@@ -17,9 +17,13 @@ func UserRouter(router *gin.RouterGroup) {
}
authGroup := router.Group("auth").Use(middleware.JWTAuthMiddleware())
{
authGroup.GET("/user/List", userApi.GetUserList)
authGroup.GET("/user/list", userApi.GetUserList)
authGroup.GET("/user/query_by_uuid", userApi.QueryUserByUuid)
authGroup.POST("/token/refresh", userApi.RefreshHandler)
}
tokenGroup := router.Group("token")
{
tokenGroup.POST("/refresh", userApi.RefreshHandler)
}
}