Add files via upload

This commit is contained in:
公明
2026-07-14 15:16:41 +08:00
committed by GitHub
parent a1925f2e03
commit 10be4e32c7
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -187,7 +187,7 @@ func (h *WorkflowHandler) save(c *gin.Context, pathID string) {
saved, _ := h.db.GetWorkflowDefinition(id)
workflowrunner.InvalidateCompiledCache(id)
if h.audit != nil {
h.audit.RecordOK(c, "workflow", "save", "保存图编排流程", "workflow", id, map[string]interface{}{"name": name})
h.audit.RecordOK(c, "workflow", "save", "保存工作流", "workflow", id, map[string]interface{}{"name": name})
}
c.JSON(http.StatusOK, gin.H{"message": "工作流已保存", "workflow": saved})
}
@@ -204,7 +204,7 @@ func (h *WorkflowHandler) Delete(c *gin.Context) {
}
workflowrunner.InvalidateCompiledCache(id)
if h.audit != nil {
h.audit.RecordOK(c, "workflow", "delete", "删除图编排流程", "workflow", id, nil)
h.audit.RecordOK(c, "workflow", "delete", "删除工作流", "workflow", id, nil)
}
c.JSON(http.StatusOK, gin.H{"message": "工作流已删除"})
}