feat: 音色管理

This commit is contained in:
Blizzard
2026-03-26 11:26:10 +08:00
parent df74da48bd
commit 5f4f739f16
11 changed files with 542 additions and 0 deletions
+37
View File
@@ -0,0 +1,37 @@
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"` // 是否默认音色
}