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

@@ -54,7 +54,7 @@ func newNodeExecution(db *gorm.DB, opts ...gen.DOOption) nodeExecution {
return _nodeExecution
}
// nodeExecution node 节点运行记录用于记录每次workflow执行时每个节点的状态信息
// nodeExecution Node run record, used to record the status information of each node during each workflow execution
type nodeExecution struct {
nodeExecutionDo

View File

@@ -42,19 +42,19 @@ func newWorkflowDraft(db *gorm.DB, opts ...gen.DOOption) workflowDraft {
return _workflowDraft
}
// workflowDraft workflow 画布草稿表用于记录workflow最新的草稿画布信息
// workflowDraft Workflow canvas draft table, used to record the latest draft canvas information of workflow
type workflowDraft struct {
workflowDraftDo
ALL field.Asterisk
ID field.Int64 // workflow ID
Canvas field.String // 前端 schema
InputParams field.String // 入参 schema
OutputParams field.String // 出参 schema
TestRunSuccess field.Bool // 0 未运行, 1 运行成功
Modified field.Bool // 0 未被修改, 1 已被修改
UpdatedAt field.Int64
DeletedAt field.Field
Canvas field.String // Front end schema
InputParams field.String // Input schema
OutputParams field.String // Output parameter schema
TestRunSuccess field.Bool // 0 not running, 1 running successfully
Modified field.Bool // 0 has not been modified, 1 has been modified
UpdatedAt field.Int64 // Update Time in Milliseconds
DeletedAt field.Field // Delete Time
CommitID field.String // used to uniquely identify a draft snapshot
fieldMap map[string]field.Expr

View File

@@ -60,7 +60,7 @@ func newWorkflowExecution(db *gorm.DB, opts ...gen.DOOption) workflowExecution {
return _workflowExecution
}
// workflowExecution workflow 执行记录表用于记录每次workflow执行时的状态
// workflowExecution Workflow Execution Record Table, used to record the status of each workflow execution
type workflowExecution struct {
workflowExecutionDo

View File

@@ -52,7 +52,7 @@ func newWorkflowMeta(db *gorm.DB, opts ...gen.DOOption) workflowMeta {
return _workflowMeta
}
// workflowMeta workflow 元信息表,用于记录workflow基本的元信息
// workflowMeta The workflow metadata table,used to record the basic metadata of workflow
type workflowMeta struct {
workflowMetaDo
@@ -61,19 +61,19 @@ type workflowMeta struct {
Name field.String // workflow name
Description field.String // workflow description
IconURI field.String // icon uri
Status field.Int32 // 0:未发布过, 1:已发布过
ContentType field.Int32 // 0用户 1官方
Status field.Int32 // 0: Not published, 1: Published
ContentType field.Int32 // 0 Users 1 Official
Mode field.Int32 // 0:workflow, 3:chat_flow
CreatedAt field.Int64 // create time in millisecond
UpdatedAt field.Int64 // update time in millisecond
DeletedAt field.Field // delete time in millisecond
CreatorID field.Int64 // user id for creator
Tag field.Int32 // template tag: Tag: 1=All, 2=Hot, 3=Information, 4=Music, 5=Picture, 6=UtilityTool, 7=Life, 8=Traval, 9=Network, 10=System, 11=Movie, 12=Office, 13=Shopping, 14=Education, 15=Health, 16=Social, 17=Entertainment, 18=Finance, 100=Hidden
AuthorID field.Int64 // 原作者用户 ID
SpaceID field.Int64 // 空间 ID
UpdaterID field.Int64 // 更新元信息的用户 ID
SourceID field.Int64 // 复制来源的 workflow ID
AppID field.Int64 // 应用 ID
AuthorID field.Int64 // Original author user ID
SpaceID field.Int64 // space id
UpdaterID field.Int64 // User ID for updating metadata
SourceID field.Int64 // Workflow ID of source
AppID field.Int64 // app id
LatestVersion field.String // the version of the most recent publish
LatestVersionTs field.Int64 // create time of latest version

View File

@@ -41,7 +41,7 @@ func newWorkflowReference(db *gorm.DB, opts ...gen.DOOption) workflowReference {
return _workflowReference
}
// workflowReference workflow 关联关系表用于记录workflow 直接互相引用关系
// workflowReference The workflow association table,used to record the direct mutual reference relationship between workflows
type workflowReference struct {
workflowReferenceDo
@@ -53,7 +53,7 @@ type workflowReference struct {
ReferringBizType field.Int32 // the biz type the referring entity belongs to: 1. workflow 2. agent
CreatedAt field.Int64 // create time in millisecond
Status field.Int32 // whether this reference currently takes effect. 0: disabled 1: enabled
DeletedAt field.Field
DeletedAt field.Field // Delete Time
fieldMap map[string]field.Expr
}

View File

@@ -50,8 +50,8 @@ type workflowSnapshot struct {
Canvas field.String // frontend schema for this snapshot
InputParams field.String // input parameter info
OutputParams field.String // output parameter info
CreatedAt field.Int64
ID field.Int64 // ID
CreatedAt field.Int64 // Create Time in Milliseconds
ID field.Int64 // ID
fieldMap map[string]field.Expr
}

View File

@@ -44,21 +44,21 @@ func newWorkflowVersion(db *gorm.DB, opts ...gen.DOOption) workflowVersion {
return _workflowVersion
}
// workflowVersion workflow 画布版本信息表,用于记录不同版本的画布信息
// workflowVersion Workflow Canvas Version Information Table, used to record canvas information for different versions
type workflowVersion struct {
workflowVersionDo
ALL field.Asterisk
ID field.Int64 // ID
WorkflowID field.Int64 // workflow id
Version field.String // 发布版本
VersionDescription field.String // 版本描述
Canvas field.String // 前端 schema
InputParams field.String
OutputParams field.String
CreatorID field.Int64 // 发布用户 ID
CreatedAt field.Int64 // 创建时间毫秒时间戳
DeletedAt field.Field // 删除毫秒时间戳
Version field.String // Published version
VersionDescription field.String // Version Description
Canvas field.String // Front end schema
InputParams field.String // input params
OutputParams field.String // output params
CreatorID field.Int64 // creator id
CreatedAt field.Int64 // Create Time in Milliseconds
DeletedAt field.Field // Delete Time
CommitID field.String // the commit id corresponding to this version
fieldMap map[string]field.Expr