增加修改个人信息和修改密码菜单。

This commit is contained in:
2026-08-25 23:54:42 +08:00
parent 16ba817ecf
commit 20395a79a2
5 changed files with 189 additions and 12 deletions
-2
View File
@@ -65,9 +65,7 @@ func setupAuthenticatedAPIRoutes(api *gin.RouterGroup) {
auth.GET("/dashboard/stats", backend.GetDashboardStats)
// 当前用户信息
auth.GET("/auth/me", backend.GetCurrentUser)
//TODO: 修改用户信息接口,在admin/index.html中添加修改用户信息表单
auth.PUT("/auth/me", backend.UpdateUser)
//TODO: 修改密码接口,在admin/index.html中添加修改密码表单
auth.PUT("/auth/password", backend.ChangePassword)
auth.POST("/auth/logout", backend.Logout)