feat(admin): complete settings APIs and password update flow

This commit is contained in:
root
2026-03-10 16:40:51 +08:00
parent 59508efb05
commit 6f1f75d983
10 changed files with 444 additions and 3 deletions
+6
View File
@@ -42,6 +42,12 @@ func registerAdminRoutes(
protected.GET("/users", handler.ListUsers)
protected.GET("/users/:id", handler.GetUserDetail)
protected.GET("/settings", handler.GetSettings)
protected.PUT("/settings/profile", handler.UpdateProfile)
protected.GET("/settings/system", handler.GetSystemConfig)
protected.PUT("/settings/system", handler.UpdateSystemConfig)
protected.PUT("/settings/password", handler.UpdatePassword)
protected.GET("/memberships/overview", handler.MembershipOverview)
protected.GET("/memberships/redeem-codes", handler.ListMembershipRedeemCodes)
protected.POST("/memberships/redeem-codes", handler.CreateMembershipRedeemCodes)