Files
ai-agent/workflow/model/entity/flow_segment_result.go
T

39 lines
1.3 KiB
Go

package entity
import "gitea.redpowerfuture.com/red-future/common/beans"
// FlowSegmentResult 视频节点段级生成结果(只存成功段),供断点续跑复用
type FlowSegmentResult struct {
beans.SQLBaseDO `orm:",inherit"` // 嵌入基础字段:Id, TenantId, Creator, CreatedAt, Updater, UpdatedAt, DeletedAt
// 业务字段
ExecutionId int64 `orm:"execution_id" json:"executionId" description:"执行ID"`
NodeId string `orm:"node_id" json:"nodeId" description:"视频生成节点ID"`
SegmentIndex int `orm:"segment_index" json:"segmentIndex" description:"段序号"`
VideoKey string `orm:"video_key" json:"videoKey" description:"视频输出字段key"`
VideoURL string `orm:"video_url" json:"videoURL" description:"已生成成功的视频地址"`
}
// SegmentRef 一段已成功生成的视频引用(Key 保持模型原输出字段名,重建输出记录保证下游引用一致)
type SegmentRef struct {
Key string
URL string
}
type flowSegmentResultCol struct {
beans.SQLBaseCol
ExecutionId string
NodeId string
SegmentIndex string
VideoKey string
VideoURL string
}
var FlowSegmentResultCol = flowSegmentResultCol{
SQLBaseCol: beans.DefSQLBaseCol,
ExecutionId: "execution_id",
NodeId: "node_id",
SegmentIndex: "segment_index",
VideoKey: "video_key",
VideoURL: "video_url",
}