feat: udpate mise exec logs

This commit is contained in:
engigu
2026-02-13 21:16:51 +08:00
parent ef0d256c58
commit 2d90d0921a
19 changed files with 180 additions and 63 deletions
+16
View File
@@ -60,3 +60,19 @@ func (c *MiseController) Versions(ctx *gin.Context) {
}
utils.Success(ctx, versions)
}
// VerifyCommand 获取验证命令
func (c *MiseController) VerifyCommand(ctx *gin.Context) {
plugin := ctx.Query("plugin")
version := ctx.Query("version")
if plugin == "" {
utils.BadRequest(ctx, "参数 plugin 不能为空")
return
}
cmd, err := c.service.GetVerifyCommand(plugin, version)
if err != nil {
utils.ServerError(ctx, "获取验证命令失败: "+err.Error())
return
}
utils.Success(ctx, gin.H{"command": cmd})
}