Files
sundynix-radio-be/model/radio/response/voice.go
T
2026-03-26 11:26:10 +08:00

38 lines
1.3 KiB
Go

package response
import "sundynix-go/model/system"
// VoiceResponse 音色响应
type VoiceResponse struct {
Id string `json:"id"`
SpeakerId string `json:"speakerId"`
Name string `json:"name"`
Description string `json:"description"`
Gender string `json:"gender"`
Icon string `json:"icon"`
AudioId string `json:"audioId"`
Audio *system.Oss `json:"audio"` // 试听音频OSS
Sort int `json:"sort"`
Status int `json:"status"`
IsDefault int `json:"isDefault"`
UseCount int `json:"useCount"`
}
// VoiceDetailResponse 音色详情响应
type VoiceDetailResponse struct {
Id string `json:"id"`
SpeakerId string `json:"speakerId"`
Name string `json:"name"`
Description string `json:"description"`
Gender string `json:"gender"`
Icon string `json:"icon"`
AudioId string `json:"audioId"`
Audio *system.Oss `json:"audio"` // 试听音频OSS
Sort int `json:"sort"`
Status int `json:"status"`
IsDefault int `json:"isDefault"`
UseCount int `json:"useCount"`
CreateTime string `json:"createTime"`
UpdateTime string `json:"updateTime"`
}