refactor(model): 重构模型实体和数据访问层

This commit is contained in:
2026-05-21 10:41:37 +08:00
parent a080a5536d
commit 170568e03e
35 changed files with 903 additions and 1072 deletions

19
consts/public/public.go Normal file
View File

@@ -0,0 +1,19 @@
package public
// ModelType 模型类型常量
const (
ModelTypeInference = 1 // 推理模型
ModelTypeImage = 2 // 图片模型
ModelTypeAudio = 3 // 音频模型
ModelTypeVector = 4 // 向量化模型
ModelTypeOmni = 5 // 全模态模型
)
// ModelTypeName 模型类型名称映射
var ModelTypeName = map[int]string{
ModelTypeInference: "推理模型",
ModelTypeImage: "图片模型",
ModelTypeAudio: "音频模型",
ModelTypeVector: "向量化模型",
ModelTypeOmni: "全模态模型",
}