38 lines
1.7 KiB
Go
38 lines
1.7 KiB
Go
package request
|
|
|
|
import common "sundynix-go/model/commom/request"
|
|
|
|
// GetVoiceList 获取音色列表请求
|
|
type GetVoiceList struct {
|
|
common.PageInfo
|
|
Name string `json:"name" form:"name"` // 音色名称
|
|
Status int `json:"status" form:"status"` // 状态
|
|
}
|
|
|
|
// SaveVoice 保存音色请求
|
|
type SaveVoice struct {
|
|
SpeakerId string `json:"speakerId" binding:"required"` // 音色ID
|
|
Name string `json:"name" binding:"required"` // 音色名称
|
|
Description string `json:"description"` // 音色描述
|
|
Gender string `json:"gender"` // 性别: male/female/neutral
|
|
Icon string `json:"icon"` // 音色图标URL
|
|
AudioId string `json:"audioId"` // 试听音频OSS ID
|
|
Sort int `json:"sort"` // 排序
|
|
Status int `json:"status"` // 状态
|
|
IsDefault int `json:"isDefault"` // 是否默认音色
|
|
}
|
|
|
|
// UpdateVoice 更新音色请求
|
|
type UpdateVoice struct {
|
|
Id string `json:"id" binding:"required"` // 音色ID
|
|
SpeakerId string `json:"speakerId"` // 音色ID
|
|
Name string `json:"name"` // 音色名称
|
|
Description string `json:"description"` // 音色描述
|
|
Gender string `json:"gender"` // 性别
|
|
Icon string `json:"icon"` // 音色图标URL
|
|
AudioId string `json:"audioId"` // 试听音频OSS ID
|
|
Sort int `json:"sort"` // 排序
|
|
Status int `json:"status"` // 状态
|
|
IsDefault int `json:"isDefault"` // 是否默认音色
|
|
}
|