From 076d5b99d238ebcdc9b9b7b136887a69fc2fa333 Mon Sep 17 00:00:00 2001
From: 905086 <k2049@qq.com>
Date: Sat, 07 Nov 2026 16:55:04 +0800
Subject: [PATCH] feat: 新增永久卡、密钥冻结、工具管理及公告功能,优化游戏安装逻辑
---
server/main.go | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/server/main.go b/server/main.go
index f7130a4..3a1e2bc 100644
--- a/server/main.go
+++ b/server/main.go
@@ -69,8 +69,13 @@
a.GET("/keys", handlers.ListKeys)
a.POST("/keys/generate", handlers.GenerateKeys)
a.POST("/keys/:id/reset", handlers.ResetKey)
+ a.POST("/keys/:id/freeze", handlers.FreezeKey)
a.DELETE("/keys/:id", handlers.DeleteKey)
+ a.GET("/tools", handlers.AdminListTools)
+ a.POST("/tools", handlers.AdminSaveTool)
+ a.DELETE("/tools/:id", handlers.AdminDeleteTool)
+
a.GET("/games", handlers.AdminListGames)
a.POST("/games", handlers.AdminSaveGame)
a.DELETE("/games/:id", handlers.AdminDeleteGame)
@@ -79,6 +84,9 @@
a.POST("/categories", handlers.AdminSaveCategory)
a.DELETE("/categories/:id", handlers.AdminDeleteCategory)
+ a.GET("/announcement", handlers.AdminGetAnnouncement)
+ a.POST("/announcement", handlers.AdminSaveAnnouncement)
+
a.POST("/upload", handlers.UploadFile)
}
}
--
Gitblit v1.10.0