chore: replace all cn comments to en version by volc api (#313)
This commit is contained in:
@@ -10,20 +10,20 @@ import (
|
||||
|
||||
const TableNameKnowledge = "knowledge"
|
||||
|
||||
// Knowledge 知识库表
|
||||
// Knowledge knowledge tabke
|
||||
type Knowledge struct {
|
||||
ID int64 `gorm:"column:id;primaryKey;comment:主键ID" json:"id"` // 主键ID
|
||||
Name string `gorm:"column:name;not null;comment:名称" json:"name"` // 名称
|
||||
AppID int64 `gorm:"column:app_id;not null;comment:项目ID,标识该资源是否是项目独有" json:"app_id"` // 项目ID,标识该资源是否是项目独有
|
||||
CreatorID int64 `gorm:"column:creator_id;not null;comment:ID" json:"creator_id"` // ID
|
||||
SpaceID int64 `gorm:"column:space_id;not null;comment:空间ID" json:"space_id"` // 空间ID
|
||||
CreatedAt int64 `gorm:"column:created_at;not null;comment:Create Time in Milliseconds" json:"created_at"` // Create Time in Milliseconds
|
||||
UpdatedAt int64 `gorm:"column:updated_at;not null;comment:Update Time in Milliseconds" json:"updated_at"` // Update Time in Milliseconds
|
||||
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;comment:Delete Time in Milliseconds" json:"deleted_at"` // Delete Time in Milliseconds
|
||||
Status int32 `gorm:"column:status;not null;default:1;comment:0 初始化, 1 生效 2 失效" json:"status"` // 0 初始化, 1 生效 2 失效
|
||||
Description string `gorm:"column:description;comment:描述" json:"description"` // 描述
|
||||
IconURI string `gorm:"column:icon_uri;comment:头像uri" json:"icon_uri"` // 头像uri
|
||||
FormatType int32 `gorm:"column:format_type;not null;comment:0:文本 1:表格 2:图片" json:"format_type"` // 0:文本 1:表格 2:图片
|
||||
ID int64 `gorm:"column:id;primaryKey;comment:id" json:"id"` // id
|
||||
Name string `gorm:"column:name;not null;comment:knowledge's name" json:"name"` // knowledge's name
|
||||
AppID int64 `gorm:"column:app_id;not null;comment:app id" json:"app_id"` // app id
|
||||
CreatorID int64 `gorm:"column:creator_id;not null;comment:creator id" json:"creator_id"` // creator id
|
||||
SpaceID int64 `gorm:"column:space_id;not null;comment:space id" json:"space_id"` // space id
|
||||
CreatedAt int64 `gorm:"column:created_at;not null;comment:Create Time in Milliseconds" json:"created_at"` // Create Time in Milliseconds
|
||||
UpdatedAt int64 `gorm:"column:updated_at;not null;comment:Update Time in Milliseconds" json:"updated_at"` // Update Time in Milliseconds
|
||||
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;comment:Delete Time" json:"deleted_at"` // Delete Time
|
||||
Status int32 `gorm:"column:status;not null;default:1;comment:0 initialization, 1 effective, 2 invalid" json:"status"` // 0 initialization, 1 effective, 2 invalid
|
||||
Description string `gorm:"column:description;comment:description" json:"description"` // description
|
||||
IconURI string `gorm:"column:icon_uri;comment:icon uri" json:"icon_uri"` // icon uri
|
||||
FormatType int32 `gorm:"column:format_type;not null;comment:0: Text 1: Table 2: Images" json:"format_type"` // 0: Text 1: Table 2: Images
|
||||
}
|
||||
|
||||
// TableName Knowledge's table name
|
||||
|
||||
Reference in New Issue
Block a user