From 7fd2270570811c0d29f0d5d87d11bfc4612e0743 Mon Sep 17 00:00:00 2001
From: 905086 <k2049@qq.com>
Date: Sat, 07 Nov 2026 20:30:06 +0800
Subject: [PATCH] feat: 实现用户密码找回功能及相关配套功能
---
server/main.go | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/server/main.go b/server/main.go
index 3a1e2bc..d219814 100644
--- a/server/main.go
+++ b/server/main.go
@@ -39,8 +39,9 @@
api.GET("/games", handlers.GetGames)
api.GET("/banners", handlers.GetBanners)
api.GET("/tools", handlers.GetTools)
+ api.GET("/tools/:id/download", handlers.ToolDownloadInfo)
api.GET("/announcements", handlers.GetAnnouncements)
- api.GET("/games/:id", handlers.GetGameDetail) // 支持可选登录
+ api.GET("/games/:id", middleware.OptionalUserAuth(), handlers.GetGameDetail) // 支持可选登录:登录后返回收藏/资源库状态
auth := api.Group("", middleware.UserAuth())
{
@@ -88,6 +89,11 @@
a.POST("/announcement", handlers.AdminSaveAnnouncement)
a.POST("/upload", handlers.UploadFile)
+
+ // 密码重置申请管理
+ a.GET("/reset_requests", handlers.ListResetRequests)
+ a.POST("/reset_requests/:id/approve", handlers.ApproveResetRequest)
+ a.DELETE("/reset_requests/:id", handlers.DeleteResetRequest)
}
}
--
Gitblit v1.10.0