From 0b4478cf6c0eb509c95a9bec2cc7bda37b259e10 Mon Sep 17 00:00:00 2001
From: 905086 <k2049@qq.com>
Date: Sat, 07 Nov 2026 19:06:06 +0800
Subject: [PATCH] feat: 新增工具管理功能及工具下载安装流程

---
 server/handlers/admin.go |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/server/handlers/admin.go b/server/handlers/admin.go
index cd59794..85dbb39 100644
--- a/server/handlers/admin.go
+++ b/server/handlers/admin.go
@@ -196,6 +196,7 @@
 		Cover       string `json:"cover"`
 		Description string `json:"description"`
 		FileURL     string `json:"file_url"`
+		LaunchExe   string `json:"launch_exe"`
 	}
 	if err := c.ShouldBindJSON(&req); err != nil || strings.TrimSpace(req.Name) == "" {
 		c.JSON(http.StatusOK, gin.H{"code": 1, "msg": "请填写工具名称"})
@@ -215,6 +216,7 @@
 	tool.Cover = req.Cover
 	tool.Description = req.Description
 	tool.FileURL = req.FileURL
+	tool.LaunchExe = req.LaunchExe
 	if req.ID > 0 {
 		config.DB.Save(&tool)
 	} else {

--
Gitblit v1.10.0