package video import ( "gitea.redpowerfuture.com/red-future/common/beans" ) // VideoCaptionTask 字幕叠加任务实体 type VideoCaptionTask struct { beans.SQLBaseDO `orm:",inherit"` TaskID string `orm:"task_id" json:"taskId" description:"任务唯一标识"` VideoURLs string `orm:"video_urls" json:"videoUrls" description:"视频URL列表JSON"` AudioURL string `orm:"audio_url" json:"audioUrl" description:"背景音乐URL"` Elements string `orm:"elements" json:"elements" description:"字幕元素列表JSON"` Width int `orm:"width" json:"width" description:"视频宽度"` Height int `orm:"height" json:"height" description:"视频高度"` Status string `orm:"status" json:"status" description:"任务状态"` FileURL string `orm:"file_url" json:"fileUrl" description:"输出文件URL"` FileSize int64 `orm:"file_size" json:"fileSize" description:"输出文件大小"` FileName string `orm:"file_name" json:"fileName" description:"输出文件名"` DurationStr string `orm:"duration_str" json:"durationStr" description:"视频时长"` ErrorMessage string `orm:"error_message" json:"errorMessage" description:"错误信息"` CallbackURL string `orm:"callback_url" json:"callbackUrl" description:"回调地址"` } // VideoCaptionTaskCol 数据库字段名常量 type VideoCaptionTaskCol struct { beans.SQLBaseCol TaskID string VideoURLs string AudioURL string Elements string Width string Height string Status string FileURL string FileSize string FileName string DurationStr string ErrorMessage string CallbackURL string } // VideoCaptionTaskCols 字段名常量实例 var VideoCaptionTaskCols = VideoCaptionTaskCol{ SQLBaseCol: beans.DefSQLBaseCol, TaskID: "task_id", VideoURLs: "video_urls", AudioURL: "audio_url", Elements: "elements", Width: "width", Height: "height", Status: "status", FileURL: "file_url", FileSize: "file_size", FileName: "file_name", DurationStr: "duration_str", ErrorMessage: "error_message", CallbackURL: "callback_url", }