【新增】litessl

【新增】删除历史记录
【调整】批量删除证书
This commit is contained in:
v-me-50
2026-01-13 16:12:29 +08:00
parent 44efcea14a
commit 6c15ae35a1
6 changed files with 98 additions and 0 deletions

View File

@@ -234,3 +234,23 @@ func GetExecLog(c *gin.Context) {
public.SuccessData(c, data, 0)
return
}
func DelWorkflowHistory(c *gin.Context) {
var form struct {
ID string `form:"id"`
}
err := c.Bind(&form)
if err != nil {
public.FailMsg(c, err.Error())
return
}
form.ID = strings.TrimSpace(form.ID)
err = workflow.DelWorkflowHistory(form.ID)
if err != nil {
public.FailMsg(c, err.Error())
return
}
public.SuccessMsg(c, "删除成功")
return
}