feat: 支持模板子流程递归拷贝与段级续跑优化

* 模板拷贝用户流程时递归复制子流程,并重写 sub_flow 节点引用
* 段级续跑改用列表位置作为段身份,移除对 segment_index 的依赖
* 段结果保存移到每段生成完成时立即落库,降低崩溃丢失风险
* 移除视频分段续跑设计与对应测试
This commit is contained in:
2026-08-25 13:56:55 +08:00
parent 855d0cca72
commit b3f4b94b21
8 changed files with 123 additions and 426 deletions
+1
View File
@@ -34,6 +34,7 @@ type UpdateFlowUserReq struct {
NodeInputParams []*entity.FlowNode `json:"nodeInputParams" description:"节点输入参数"`
AccessLevel flow.FlowUserAccessLevel `json:"accessLevel" description:"访问权限:1私有,2团队,3公开"`
SourceFlowTemplateId int64 `json:"sourceFlowTemplateId" description:"来源流程模板ID"`
SubFlows []UpdateFlowUserReq `json:"subFlows" description:"子流程"`
}
type DeleteFlowUserReq struct {
+1 -1
View File
@@ -65,7 +65,7 @@ type ValueSource struct {
// SubFlowConfig 子流程节点配置
type SubFlowConfig struct {
WorkflowId int64 `json:"workflowId"`
WorkflowId int64 `json:"workflowId,string"`
WorkflowName string `json:"workflowName"`
Fields []map[string]any `json:"fields"`
MaxConcurrency int `json:"maxConcurrency"` // 子流程并发数