Files
video-factory/shortdrama/model/segment_output.go
T
2026-06-30 12:15:34 +08:00

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