28 lines
907 B
Go
28 lines
907 B
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)
|
||
}
|