数字人项目迁移

This commit is contained in:
2026-04-27 11:07:21 +08:00
parent ba360bc89b
commit 995e038541
38 changed files with 4844 additions and 0 deletions

View File

@@ -0,0 +1,57 @@
package entity
import (
"digital-human/consts"
"gitea.com/red-future/common/beans"
)
type digitalHumanCol struct {
beans.SQLBaseCol
Name string
Description string
AvatarURL string
VideoURL string
Voice string
Status string
Tags string
Gender string
Age string
Style string
ExternalID string
Metadata string
}
var DigitalHumanCol = digitalHumanCol{
SQLBaseCol: beans.DefSQLBaseCol,
Name: "name",
Description: "description",
AvatarURL: "avatar_url",
VideoURL: "video_url",
Voice: "voice",
Status: "status",
Tags: "tags",
Gender: "gender",
Age: "age",
Style: "style",
ExternalID: "external_id",
Metadata: "metadata",
}
// DigitalHuman 数字人形象实体
type DigitalHuman struct {
beans.SQLBaseDO `orm:",inline"`
// 基础信息
Name string `orm:"name" json:"name"` // 数字人名称
Description string `orm:"description" json:"description"` // 数字人描述
AvatarURL string `orm:"avatar_url" json:"imageUrl"` // 形象图片URL
VideoURL string `orm:"video_url" json:"videoUrl"` // 形象视频URL
Voice string `orm:"voice" json:"voice"` // 默认音色
Status consts.DigitalHumanStatus `orm:"status" json:"status"` // 状态1启用/0停用
Tags []string `orm:"tags" json:"tags"` // 标签
Gender consts.Gender `orm:"gender" json:"gender"` // 性别
Age consts.Age `orm:"age" json:"age"` // 年龄段
Style consts.Style `orm:"style" json:"style"` // 风格:商务/休闲/正式等
ExternalID string `orm:"external_id" json:"externalId"` // 外部系统ID
Metadata []map[string]interface{} `orm:"metadata" json:"metadata"` // 动态元数据
}