19 lines
1.1 KiB
Go
19 lines
1.1 KiB
Go
package entity
|
|
|
|
import "github.com/gogf/gf/v2/os/gtime"
|
|
|
|
type GenerationTask struct {
|
|
Id int64 `orm:"id" json:"id" dc:"任务ID"`
|
|
DramaId int64 `orm:"drama_id" json:"dramaId" dc:"短剧ID"`
|
|
EpisodeId int64 `orm:"episode_id" json:"episodeId" dc:"剧集ID"`
|
|
SegmentIdx int `orm:"segment_idx" json:"segmentIdx" dc:"段索引"`
|
|
Status string `orm:"status" json:"status" dc:"任务状态(pending/generating/review/completed/failed)"`
|
|
ScriptPath string `orm:"script_path" json:"scriptPath" dc:"脚本文件路径"`
|
|
VideoTaskId string `orm:"video_task_id" json:"videoTaskId" dc:"视频合成任务ID"`
|
|
VideoUrl string `orm:"video_url" json:"videoUrl" dc:"视频文件路径"`
|
|
NumSegments int `orm:"num_segments" json:"numSegments" dc:"本集总段数"`
|
|
ErrorMessage string `orm:"error_message" json:"errorMessage" dc:"错误信息"`
|
|
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt" dc:"创建时间"`
|
|
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt" dc:"更新时间"`
|
|
}
|