From b1e9aef9d2698cf27eccde2f131eae3c4e6a65d0 Mon Sep 17 00:00:00 2001
From: 905086 <k2049@qq.com>
Date: Sun, 08 Nov 2026 16:10:17 +0800
Subject: [PATCH] docs: 添加项目信息和游戏功能需求文档

---
 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