fix: 复用失败工作流执行记录并统一节点触发模式

This commit is contained in:
2026-08-21 13:30:07 +08:00
parent 9bc388018b
commit a06766db6d
3 changed files with 43 additions and 20 deletions
@@ -20,12 +20,13 @@ type DeleteExecWorkflowReq struct {
}
type UpdateWorkflowReq struct {
Id int64 `json:"id" v:"required#工作流执行记录ID不能为空"`
NodeGroupId string `json:"nodeGroupId" description:"节点组ID"`
Status flow.FlowExecutionStatus `json:"status" description:"状态:1-运行中,2-成功,3-失败"`
Duration int64 `json:"duration" description:"执行时长(秒)"`
TotalTokens int `json:"totalTokens" description:"总token消耗"`
TotalFee float64 `json:"totalFee" description:"总费用"`
ErrorMessage string `json:"errorMessage" description:"错误信息(友好提示)"`
Error string `json:"error" description:"错误明细(原始错误)"`
Id int64 `json:"id" v:"required#工作流执行记录ID不能为空"`
NodeGroupId string `json:"nodeGroupId" description:"节点组ID"`
Status flow.FlowExecutionStatus `json:"status" description:"状态:1-运行中,2-成功,3-失败"`
Duration int64 `json:"duration" description:"执行时长(秒)"`
TotalTokens int `json:"totalTokens" description:"总token消耗"`
TotalFee float64 `json:"totalFee" description:"总费用"`
ErrorMessage string `json:"errorMessage" description:"错误信息(友好提示)"`
Error string `json:"error" description:"错误明细(原始错误)"`
RequestParams *entity.FlowInfo `json:"requestParams" description:"请求参数"`
}