52 lines
2.1 KiB
Go
52 lines
2.1 KiB
Go
package request
|
|
|
|
import common "sundynix-go/model/commom/request"
|
|
|
|
// GetProgramList 获取节目列表请求
|
|
type GetProgramList struct {
|
|
common.PageInfo
|
|
ChannelId string `json:"channelId" form:"channelId"` // 频道ID
|
|
Title string `json:"title" form:"title"` // 节目标题
|
|
Status int `json:"status" form:"status"` // 状态
|
|
}
|
|
|
|
// SaveProgram 保存节目请求
|
|
type SaveProgram struct {
|
|
ChannelId string `json:"channelId" binding:"required"` // 频道ID
|
|
Title string `json:"title" binding:"required"` // 节目标题
|
|
Description string `json:"description"` // 节目描述
|
|
Content string `json:"content"`
|
|
Cover string `json:"cover"` // 封面图URL
|
|
AudioId string `json:"audioId"` // 音频URL
|
|
Duration int `json:"duration"` // 时长(秒)
|
|
Tags string `json:"tags"` // 标签
|
|
Status int `json:"status"` // 状态
|
|
}
|
|
|
|
// UpdateProgram 更新节目请求
|
|
type UpdateProgram struct {
|
|
Id string `json:"id" binding:"required"` // 节目ID
|
|
ChannelId string `json:"channelId"` // 频道ID
|
|
Title string `json:"title"` // 节目标题
|
|
Description string `json:"description"` // 节目描述
|
|
Content string `json:"content"`
|
|
Cover string `json:"cover"` // 封面图URL
|
|
AudioId string `json:"audioId"` // 音频URL
|
|
Duration int `json:"duration"` // 时长(秒)
|
|
Tags string `json:"tags"` // 标签
|
|
Status int `json:"status"` // 状态
|
|
}
|
|
|
|
// VolcengineTTSRequest 火山引擎语音合成请求
|
|
type VolcengineTTSRequest struct {
|
|
ProgramId string `json:"programId" binding:"required"` // 节目ID
|
|
Text string `json:"text" binding:"required"` // 要合成的文本
|
|
VoiceType string `json:"voiceType"` // 声音类型
|
|
Speed int `json:"speed"` // 语速 -6到6
|
|
Pitch int `json:"pitch"` // 音调 -8到8
|
|
Volume int `json:"volume"` // 音量 0到10
|
|
}
|
|
|
|
// GetVoiceTypeListRequest 获取声音类型列表请求
|
|
type GetVoiceTypeListRequest struct{}
|