chore: replace all cn comments to en version by volc api (#313)

This commit is contained in:
tecvan
2025-07-31 15:18:11 +08:00
committed by GitHub
parent 91d6cdb430
commit 5abc63fba6
254 changed files with 5899 additions and 5844 deletions

View File

@@ -8,24 +8,24 @@ import "github.com/coze-dev/coze-studio/backend/api/model/crossdomain/agentrun"
const TableNameRunRecord = "run_record"
// RunRecord 执行记录表
// RunRecord run record
type RunRecord struct {
ID int64 `gorm:"column:id;primaryKey;comment:主键ID" json:"id"` // 主键ID
ConversationID int64 `gorm:"column:conversation_id;not null;comment:会话 ID" json:"conversation_id"` // 会话 ID
SectionID int64 `gorm:"column:section_id;not null;comment:section ID" json:"section_id"` // section ID
AgentID int64 `gorm:"column:agent_id;not null;comment:agent_id" json:"agent_id"` // agent_id
UserID string `gorm:"column:user_id;not null;comment:user id" json:"user_id"` // user id
Source int32 `gorm:"column:source;not null;comment:执行来源 0 API," json:"source"` // 执行来源 0 API,
Status string `gorm:"column:status;not null;comment:状态,0 Unknown, 1-Created,2-InProgress,3-Completed,4-Failed,5-Expired,6-Cancelled,7-RequiresAction" json:"status"` // 状态,0 Unknown, 1-Created,2-InProgress,3-Completed,4-Failed,5-Expired,6-Cancelled,7-RequiresAction
CreatorID int64 `gorm:"column:creator_id;not null;comment:创建者标识" json:"creator_id"` // 创建者标识
CreatedAt int64 `gorm:"column:created_at;not null;autoCreateTime:milli;comment:创建时间" json:"created_at"` // 创建时间
UpdatedAt int64 `gorm:"column:updated_at;not null;autoUpdateTime:milli;comment:更新时间" json:"updated_at"` // 更新时间
FailedAt int64 `gorm:"column:failed_at;not null;comment:失败时间" json:"failed_at"` // 失败时间
LastError string `gorm:"column:last_error;comment:error message" json:"last_error"` // error message
CompletedAt int64 `gorm:"column:completed_at;not null;comment:结束时间" json:"completed_at"` // 结束时间
ChatRequest string `gorm:"column:chat_request;comment:保存原始请求的部分字段" json:"chat_request"` // 保存原始请求的部分字段
Ext string `gorm:"column:ext;comment:扩展字段" json:"ext"` // 扩展字段
Usage *agentrun.Usage `gorm:"column:usage;comment:usage;serializer:json" json:"usage"` // usage
ID int64 `gorm:"column:id;primaryKey;comment:id" json:"id"` // id
ConversationID int64 `gorm:"column:conversation_id;not null;comment:conversation id" json:"conversation_id"` // conversation id
SectionID int64 `gorm:"column:section_id;not null;comment:section ID" json:"section_id"` // section ID
AgentID int64 `gorm:"column:agent_id;not null;comment:agent_id" json:"agent_id"` // agent_id
UserID string `gorm:"column:user_id;not null;comment:user id" json:"user_id"` // user id
Source int32 `gorm:"column:source;not null;comment:Execute source 0 API" json:"source"` // Execute source 0 API
Status string `gorm:"column:status;not null;comment:status,0 Unknown, 1-Created,2-InProgress,3-Completed,4-Failed,5-Expired,6-Cancelled,7-RequiresAction" json:"status"` // status,0 Unknown, 1-Created,2-InProgress,3-Completed,4-Failed,5-Expired,6-Cancelled,7-RequiresAction
CreatorID int64 `gorm:"column:creator_id;not null;comment:creator id" json:"creator_id"` // creator id
CreatedAt int64 `gorm:"column:created_at;not null;autoCreateTime:milli;comment:Create Time in Milliseconds" json:"created_at"` // Create Time in Milliseconds
UpdatedAt int64 `gorm:"column:updated_at;not null;autoUpdateTime:milli;comment:Update Time in Milliseconds" json:"updated_at"` // Update Time in Milliseconds
FailedAt int64 `gorm:"column:failed_at;not null;comment:Fail Time in Milliseconds" json:"failed_at"` // Fail Time in Milliseconds
LastError string `gorm:"column:last_error;comment:error message" json:"last_error"` // error message
CompletedAt int64 `gorm:"column:completed_at;not null;comment:Finish Time in Milliseconds" json:"completed_at"` // Finish Time in Milliseconds
ChatRequest string `gorm:"column:chat_request;comment:Original request field" json:"chat_request"` // Original request field
Ext string `gorm:"column:ext;comment:ext" json:"ext"` // ext
Usage *agentrun.Usage `gorm:"column:usage;comment:usage;serializer:json" json:"usage"` // usage
}
// TableName RunRecord's table name

View File

@@ -49,26 +49,26 @@ func newRunRecord(db *gorm.DB, opts ...gen.DOOption) runRecord {
return _runRecord
}
// runRecord 执行记录表
// runRecord run record
type runRecord struct {
runRecordDo
ALL field.Asterisk
ID field.Int64 // 主键ID
ConversationID field.Int64 // 会话 ID
ID field.Int64 // id
ConversationID field.Int64 // conversation id
SectionID field.Int64 // section ID
AgentID field.Int64 // agent_id
UserID field.String // user id
Source field.Int32 // 执行来源 0 API,
Status field.String // 状态,0 Unknown, 1-Created,2-InProgress,3-Completed,4-Failed,5-Expired,6-Cancelled,7-RequiresAction
CreatorID field.Int64 // 创建者标识
CreatedAt field.Int64 // 创建时间
UpdatedAt field.Int64 // 更新时间
FailedAt field.Int64 // 失败时间
Source field.Int32 // Execute source 0 API
Status field.String // status,0 Unknown, 1-Created,2-InProgress,3-Completed,4-Failed,5-Expired,6-Cancelled,7-RequiresAction
CreatorID field.Int64 // creator id
CreatedAt field.Int64 // Create Time in Milliseconds
UpdatedAt field.Int64 // Update Time in Milliseconds
FailedAt field.Int64 // Fail Time in Milliseconds
LastError field.String // error message
CompletedAt field.Int64 // 结束时间
ChatRequest field.String // 保存原始请求的部分字段
Ext field.String // 扩展字段
CompletedAt field.Int64 // Finish Time in Milliseconds
ChatRequest field.String // Original request field
Ext field.String // ext
Usage field.Field // usage
fieldMap map[string]field.Expr