Files
video-factory/shortdrama/model/segment_output.go
T
2026-07-07 12:44:21 +08:00

35 lines
1.2 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package model
// SegmentOutput 单段生成输出
type SegmentOutput struct {
Index int `json:"index"`
TextOutput string `json:"textOutput"`
Scenes []SegmentScene `json:"scenes"`
Characters []SegmentCharacter `json:"characters"`
}
// SegmentScene 单段中的一个场景
type SegmentScene struct {
Index int `json:"index"`
Description string `json:"description"`
Lines string `json:"lines"`
Duration int `json:"duration"`
Characters []string `json:"characters"`
ImagePath string `json:"imagePath"`
ImageBase64 string `json:"-"` // 场景图片 base64(不序列化到 StepsData
}
// SegmentCharacter 单段中的一个演员
type SegmentCharacter struct {
Name string `json:"name"`
Description string `json:"description"`
ImageBase64 string `json:"-"` // 形象 base64(不序列化到 StepsData
}
// VideoRef 视频模型 API 参考素材
type VideoRef struct {
Type string `json:"type"` // "character" | "scene" | "prop"
Name string `json:"name"` // 实体名称
MediaURL string `json:"mediaUrl"` // 参考素材 URLbase64 data URL 或 HTTP URL
}