chore: replace all cn comments to en version by volc api (#313)
This commit is contained in:
@@ -45,23 +45,23 @@ func newKnowledge(db *gorm.DB, opts ...gen.DOOption) knowledge {
|
||||
return _knowledge
|
||||
}
|
||||
|
||||
// knowledge 知识库表
|
||||
// knowledge knowledge tabke
|
||||
type knowledge struct {
|
||||
knowledgeDo
|
||||
|
||||
ALL field.Asterisk
|
||||
ID field.Int64 // 主键ID
|
||||
Name field.String // 名称
|
||||
AppID field.Int64 // 项目ID,标识该资源是否是项目独有
|
||||
CreatorID field.Int64 // ID
|
||||
SpaceID field.Int64 // 空间ID
|
||||
ID field.Int64 // id
|
||||
Name field.String // knowledge's name
|
||||
AppID field.Int64 // app id
|
||||
CreatorID field.Int64 // creator id
|
||||
SpaceID field.Int64 // space id
|
||||
CreatedAt field.Int64 // Create Time in Milliseconds
|
||||
UpdatedAt field.Int64 // Update Time in Milliseconds
|
||||
DeletedAt field.Field // Delete Time in Milliseconds
|
||||
Status field.Int32 // 0 初始化, 1 生效 2 失效
|
||||
Description field.String // 描述
|
||||
IconURI field.String // 头像uri
|
||||
FormatType field.Int32 // 0:文本 1:表格 2:图片
|
||||
DeletedAt field.Field // Delete Time
|
||||
Status field.Int32 // 0 initialization, 1 effective, 2 invalid
|
||||
Description field.String // description
|
||||
IconURI field.String // icon uri
|
||||
FormatType field.Int32 // 0: Text 1: Table 2: Images
|
||||
|
||||
fieldMap map[string]field.Expr
|
||||
}
|
||||
|
||||
@@ -52,30 +52,30 @@ func newKnowledgeDocument(db *gorm.DB, opts ...gen.DOOption) knowledgeDocument {
|
||||
return _knowledgeDocument
|
||||
}
|
||||
|
||||
// knowledgeDocument 知识库文档表
|
||||
// knowledgeDocument knowledge document info
|
||||
type knowledgeDocument struct {
|
||||
knowledgeDocumentDo
|
||||
|
||||
ALL field.Asterisk
|
||||
ID field.Int64 // 主键ID
|
||||
KnowledgeID field.Int64 // 所属knowledge的ID
|
||||
Name field.String // 文档名称
|
||||
FileExtension field.String // 文档类型, txt/pdf/csv/...
|
||||
DocumentType field.Int32 // 文档类型: 0:文本 1:表格 2:图片
|
||||
URI field.String // 资源uri
|
||||
Size field.Int64 // 文档大小
|
||||
SliceCount field.Int64 // 分片数量
|
||||
CharCount field.Int64 // 字符数
|
||||
CreatorID field.Int64 // 创建者ID
|
||||
SpaceID field.Int64 // 空间id
|
||||
ID field.Int64 // id
|
||||
KnowledgeID field.Int64 // knowledge id
|
||||
Name field.String // document name
|
||||
FileExtension field.String // Document type, txt/pdf/csv etc..
|
||||
DocumentType field.Int32 // Document type: 0: Text 1: Table 2: Image
|
||||
URI field.String // uri
|
||||
Size field.Int64 // document size
|
||||
SliceCount field.Int64 // slice count
|
||||
CharCount field.Int64 // number of characters
|
||||
CreatorID field.Int64 // creator id
|
||||
SpaceID field.Int64 // space id
|
||||
CreatedAt field.Int64 // Create Time in Milliseconds
|
||||
UpdatedAt field.Int64 // Update Time in Milliseconds
|
||||
DeletedAt field.Field // Delete Time in Milliseconds
|
||||
SourceType field.Int32 // 0:本地文件上传, 2:自定义文本
|
||||
Status field.Int32 // 状态
|
||||
FailReason field.String // 失败原因
|
||||
ParseRule field.Field // 解析+切片规则
|
||||
TableInfo field.Field // 表格信息
|
||||
DeletedAt field.Field // Delete Time
|
||||
SourceType field.Int32 // 0: Local file upload, 2: Custom text, 103: Feishu 104: Lark
|
||||
Status field.Int32 // status
|
||||
FailReason field.String // fail reason
|
||||
ParseRule field.Field // parse rule
|
||||
TableInfo field.Field // table info
|
||||
|
||||
fieldMap map[string]field.Expr
|
||||
}
|
||||
|
||||
@@ -46,24 +46,24 @@ func newKnowledgeDocumentReview(db *gorm.DB, opts ...gen.DOOption) knowledgeDocu
|
||||
return _knowledgeDocumentReview
|
||||
}
|
||||
|
||||
// knowledgeDocumentReview 文档审阅表
|
||||
// knowledgeDocumentReview Document slice preview info
|
||||
type knowledgeDocumentReview struct {
|
||||
knowledgeDocumentReviewDo
|
||||
|
||||
ALL field.Asterisk
|
||||
ID field.Int64 // 主键ID
|
||||
ID field.Int64 // id
|
||||
KnowledgeID field.Int64 // knowledge id
|
||||
SpaceID field.Int64 // 空间id
|
||||
Name field.String // 文档名称
|
||||
Type field.String // 文档类型
|
||||
URI field.String // 资源标识
|
||||
FormatType field.Int32 // 0 文本, 1 表格, 2 图片
|
||||
Status field.Int32 // 0 处理中,1 已完成,2 失败,3 失效
|
||||
ChunkRespURI field.String // 预切片tos资源标识
|
||||
DeletedAt field.Field // Delete Time in Milliseconds
|
||||
SpaceID field.Int64 // space id
|
||||
Name field.String // name
|
||||
Type field.String // document type
|
||||
URI field.String // uri
|
||||
FormatType field.Int32 // 0 text, 1 table, 2 images
|
||||
Status field.Int32 // 0 Processing 1 Completed 2 Failed 3 Expired
|
||||
ChunkRespURI field.String // pre-sliced uri
|
||||
DeletedAt field.Field // Delete Time
|
||||
CreatedAt field.Int64 // Create Time in Milliseconds
|
||||
UpdatedAt field.Int64 // Update Time in Milliseconds
|
||||
CreatorID field.Int64 // 创建者ID
|
||||
CreatorID field.Int64 // creator id
|
||||
|
||||
fieldMap map[string]field.Expr
|
||||
}
|
||||
|
||||
@@ -46,24 +46,24 @@ func newKnowledgeDocumentSlice(db *gorm.DB, opts ...gen.DOOption) knowledgeDocum
|
||||
return _knowledgeDocumentSlice
|
||||
}
|
||||
|
||||
// knowledgeDocumentSlice 知识库文件切片表
|
||||
// knowledgeDocumentSlice knowledge document slice
|
||||
type knowledgeDocumentSlice struct {
|
||||
knowledgeDocumentSliceDo
|
||||
|
||||
ALL field.Asterisk
|
||||
ID field.Int64 // 主键ID
|
||||
ID field.Int64 // id
|
||||
KnowledgeID field.Int64 // knowledge id
|
||||
DocumentID field.Int64 // document id
|
||||
Content field.String // 切片内容
|
||||
Sequence field.Float64 // 切片顺序号, 从1开始
|
||||
DocumentID field.Int64 // document_id
|
||||
Content field.String // content
|
||||
Sequence field.Float64 // slice sequence number, starting from 1
|
||||
CreatedAt field.Int64 // Create Time in Milliseconds
|
||||
UpdatedAt field.Int64 // Update Time in Milliseconds
|
||||
DeletedAt field.Field // Delete Time in Milliseconds
|
||||
CreatorID field.Int64 // 创建者ID
|
||||
SpaceID field.Int64 // 空间ID
|
||||
Status field.Int32 // 状态
|
||||
FailReason field.String // 失败原因
|
||||
Hit field.Int64 // 命中次数
|
||||
DeletedAt field.Field // Delete Time
|
||||
CreatorID field.Int64 // creator id
|
||||
SpaceID field.Int64 // space id
|
||||
Status field.Int32 // status
|
||||
FailReason field.String // fail reason
|
||||
Hit field.Int64 // hit counts
|
||||
|
||||
fieldMap map[string]field.Expr
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user