上传用户头像,修改密码,操作日志,

This commit is contained in:
zhangwenjian committed 2020-03-15 20:46:55 +08:00
1 parent 425694a865
commit e6f404aeed
9 files changed
+139 -100

No files matched your search

+4 -1
View File
@@ -47,7 +47,7 @@ func InitRouter() *gin.Engine {
}
r.POST("/login", authMiddleware.LoginHandler)
r.POST("/logout", handler.LogOut)
// Refresh time can be longer than token timeout
r.GET("/refresh_token", authMiddleware.RefreshHandler)
//r.GET("/dashboard", Dashboard)
@@ -111,6 +111,8 @@ func InitRouter() *gin.Engine {
auth.GET("/getinfo", GetInfo)
auth.GET("/user/profile", GetSysUserProfile)
auth.POST("/user/avatar", InsetSysUserAvatar)
auth.PUT("/user/pwd", SysUserUpdatePwd)
auth.GET("/postlist", GetPostList)
auth.GET("/post/:postId", GetPost)
@@ -139,6 +141,7 @@ func InitRouter() *gin.Engine {
auth.GET("/configKey/:configKey", GetConfigByConfigKey)
auth.POST("/logout", handler.LogOut)
}
//r.NoRoute(authMiddleware.MiddlewareFunc(), NoFound)