35 lines
1.2 KiB
Go
35 lines
1.2 KiB
Go
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"` // 参考素材 URL(API 要求 HTTPS 公网 URL 或 OSS URL)
|
||
}
|