feat: 音色管理
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
package radio
|
||||
|
||||
import (
|
||||
"sundynix-go/global"
|
||||
"sundynix-go/model/system"
|
||||
)
|
||||
|
||||
// RadioVoice 音色管理表
|
||||
type RadioVoice struct {
|
||||
global.BaseModel
|
||||
SpeakerId string `gorm:"size:50;uniqueIndex" json:"speakerId"` // 音色ID (火山引擎的speaker值)
|
||||
Name string `gorm:"size:50" json:"name"` // 音色名称
|
||||
Description string `gorm:"size:255" json:"description"` // 音色描述
|
||||
Gender string `gorm:"size:10" json:"gender"` // 性别: male/female/neutral
|
||||
Icon string `gorm:"size:255" json:"icon"` // 音色图标URL
|
||||
AudioId string `gorm:"size:50" json:"audioId"` // 试听音频OSS ID
|
||||
Audio *system.Oss `gorm:"foreignKey:AudioId" json:"audio"` // 试听音频OSS
|
||||
Sort int `gorm:"default:0" json:"sort"` // 排序
|
||||
Status int `gorm:"default:1" json:"status"` // 状态 0:禁用 1:启用
|
||||
IsDefault int `gorm:"default:0" json:"isDefault"` // 是否默认音色 0:否 1:是
|
||||
UseCount int `gorm:"default:0" json:"useCount"` // 使用次数
|
||||
}
|
||||
|
||||
func (RadioVoice) TableName() string {
|
||||
return "sundynix_radio_voice"
|
||||
}
|
||||
Reference in New Issue
Block a user