Files
media/model/dto/video/video_dto.go
2026-05-19 14:33:06 +08:00

18 lines
750 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 video
// ConcatReq 视频拼接请求JSON body / URL 方式)
type ConcatReq struct {
VideoURLs []string `json:"video_urls" v:"required#视频URL列表不能为空" dc:"视频URL列表(按此顺序拼接)"`
Method string `json:"method" dc:"拼接方式(auto/fast/reencode)" d:"auto"`
}
// ConcatRes 视频拼接响应
type ConcatRes struct {
OutputPath string `json:"outputPath" dc:"输出文件路径"`
FileSize int64 `json:"fileSize" dc:"文件大小(字节)"`
Duration float64 `json:"duration" dc:"总时长(秒)"`
DurationStr string `json:"durationStr" dc:"可读时长"`
MethodUsed string `json:"methodUsed" dc:"实际使用的拼接方式"`
InputFiles int `json:"inputFiles" dc:"输入文件数"`
}