From 6697e53613d5ce562a19795ab41b19803c2bb93d Mon Sep 17 00:00:00 2001
From: 905086 <k2049@qq.com>
Date: Sat, 07 Nov 2026 19:26:30 +0800
Subject: [PATCH] feat(tools): 新增工具卸载功能及相关实现
---
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