39 lines
1.3 KiB
Go
39 lines
1.3 KiB
Go
package entity
|
|
|
|
import (
|
|
"gitea.redpowerfuture.com/red-future/common/beans"
|
|
)
|
|
|
|
type customVoiceCol struct {
|
|
beans.SQLBaseCol
|
|
Name string
|
|
Description string
|
|
Status string
|
|
ErrorMsg string
|
|
OssFile string
|
|
ReferenceAudio string
|
|
}
|
|
|
|
var CustomVoiceCol = customVoiceCol{
|
|
SQLBaseCol: beans.DefSQLBaseCol,
|
|
Name: "name",
|
|
Description: "description",
|
|
Status: "status",
|
|
ErrorMsg: "error_msg",
|
|
OssFile: "oss_file",
|
|
ReferenceAudio: "reference_audio",
|
|
}
|
|
|
|
// CustomVoice 自定义音色实体
|
|
type CustomVoice struct {
|
|
beans.SQLBaseDO `orm:",inline"`
|
|
// 基础信息
|
|
Name string `orm:"name" json:"name"` // 音色名称
|
|
Description string `orm:"description" json:"description"` // 音色描述
|
|
Text string `orm:"text" json:"text"` // 参考文本
|
|
Status int `orm:"status" json:"status"` // 状态:0生成中/1成功/2失败
|
|
ErrorMsg string `orm:"error_msg" json:"errorMsg"` // 错误信息
|
|
OssFile string `orm:"oss_file" json:"ossFile"` // 结果文件URL(如参考音频/特征文件等)
|
|
ReferenceAudio []byte `orm:"reference_audio" json:"referenceAudio"` // 参考音频数据(二进制)
|
|
}
|