chore: replace all cn comments to en version by volc api (#313)
This commit is contained in:
@@ -8,31 +8,31 @@ import "github.com/coze-dev/coze-studio/backend/api/model/ocean/cloud/playground
|
||||
|
||||
const TableNameShortcutCommand = "shortcut_command"
|
||||
|
||||
// ShortcutCommand bot快捷指令表
|
||||
// ShortcutCommand bot shortcut command table
|
||||
type ShortcutCommand struct {
|
||||
ID int64 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键ID" json:"id"` // 主键ID
|
||||
ObjectID int64 `gorm:"column:object_id;not null;comment:实体ID,该实体可用这个指令" json:"object_id"` // 实体ID,该实体可用这个指令
|
||||
CommandID int64 `gorm:"column:command_id;not null;comment:命令ID" json:"command_id"` // 命令ID
|
||||
CommandName string `gorm:"column:command_name;not null;comment:命令名称" json:"command_name"` // 命令名称
|
||||
ShortcutCommand string `gorm:"column:shortcut_command;not null;comment:快捷指令" json:"shortcut_command"` // 快捷指令
|
||||
Description string `gorm:"column:description;not null;comment:命令描述" json:"description"` // 命令描述
|
||||
SendType int32 `gorm:"column:send_type;not null;comment:发送类型 0:query 1:panel" json:"send_type"` // 发送类型 0:query 1:panel
|
||||
ToolType int32 `gorm:"column:tool_type;not null;comment:使用工具的type 1:workFlow 2:插件" json:"tool_type"` // 使用工具的type 1:workFlow 2:插件
|
||||
WorkFlowID int64 `gorm:"column:work_flow_id;not null;comment:使用workFlow的id" json:"work_flow_id"` // 使用workFlow的id
|
||||
PluginID int64 `gorm:"column:plugin_id;not null;comment:使用插件的id" json:"plugin_id"` // 使用插件的id
|
||||
PluginToolName string `gorm:"column:plugin_tool_name;not null;comment:使用插件的api_name" json:"plugin_tool_name"` // 使用插件的api_name
|
||||
TemplateQuery string `gorm:"column:template_query;comment:query模板" json:"template_query"` // query模板
|
||||
Components []*playground.Components `gorm:"column:components;comment:panel参数;serializer:json" json:"components"` // panel参数
|
||||
CardSchema string `gorm:"column:card_schema;comment:卡片schema" json:"card_schema"` // 卡片schema
|
||||
ToolInfo *playground.ToolInfo `gorm:"column:tool_info;comment:工具信息 包含name+变量列表;serializer:json" json:"tool_info"` // 工具信息 包含name+变量列表
|
||||
Status int32 `gorm:"column:status;not null;comment:状态,0无效,1有效" json:"status"` // 状态,0无效,1有效
|
||||
CreatorID int64 `gorm:"column:creator_id;comment:创建者ID" json:"creator_id"` // 创建者ID
|
||||
IsOnline int32 `gorm:"column:is_online;not null;comment:是否为线上信息 0草稿 1线上" json:"is_online"` // 是否为线上信息 0草稿 1线上
|
||||
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"` // 更新时间
|
||||
AgentID int64 `gorm:"column:agent_id;not null;comment:multi的指令时,该指令由哪个节点执行" json:"agent_id"` // multi的指令时,该指令由哪个节点执行
|
||||
ShortcutIcon *playground.ShortcutFileInfo `gorm:"column:shortcut_icon;comment:快捷指令图标;serializer:json" json:"shortcut_icon"` // 快捷指令图标
|
||||
PluginToolID int64 `gorm:"column:plugin_tool_id;not null;comment:tool_id" json:"plugin_tool_id"` // tool_id
|
||||
ID int64 `gorm:"column:id;primaryKey;autoIncrement:true;comment:id" json:"id"` // id
|
||||
ObjectID int64 `gorm:"column:object_id;not null;comment:Entity ID, this command can be used for this entity" json:"object_id"` // Entity ID, this command can be used for this entity
|
||||
CommandID int64 `gorm:"column:command_id;not null;comment:command id" json:"command_id"` // command id
|
||||
CommandName string `gorm:"column:command_name;not null;comment:command name" json:"command_name"` // command name
|
||||
ShortcutCommand string `gorm:"column:shortcut_command;not null;comment:shortcut command" json:"shortcut_command"` // shortcut command
|
||||
Description string `gorm:"column:description;not null;comment:description" json:"description"` // description
|
||||
SendType int32 `gorm:"column:send_type;not null;comment:send type 0:query 1:panel" json:"send_type"` // send type 0:query 1:panel
|
||||
ToolType int32 `gorm:"column:tool_type;not null;comment:Type 1 of tool used: WorkFlow 2: Plugin" json:"tool_type"` // Type 1 of tool used: WorkFlow 2: Plugin
|
||||
WorkFlowID int64 `gorm:"column:work_flow_id;not null;comment:workflow id" json:"work_flow_id"` // workflow id
|
||||
PluginID int64 `gorm:"column:plugin_id;not null;comment:plugin id" json:"plugin_id"` // plugin id
|
||||
PluginToolName string `gorm:"column:plugin_tool_name;not null;comment:plugin tool name" json:"plugin_tool_name"` // plugin tool name
|
||||
TemplateQuery string `gorm:"column:template_query;comment:template query" json:"template_query"` // template query
|
||||
Components []*playground.Components `gorm:"column:components;comment:Panel parameters;serializer:json" json:"components"` // Panel parameters
|
||||
CardSchema string `gorm:"column:card_schema;comment:card schema" json:"card_schema"` // card schema
|
||||
ToolInfo *playground.ToolInfo `gorm:"column:tool_info;comment:Tool information includes name+variable list;serializer:json" json:"tool_info"` // Tool information includes name+variable list
|
||||
Status int32 `gorm:"column:status;not null;comment:Status, 0 is invalid, 1 is valid" json:"status"` // Status, 0 is invalid, 1 is valid
|
||||
CreatorID int64 `gorm:"column:creator_id;comment:creator id" json:"creator_id"` // creator id
|
||||
IsOnline int32 `gorm:"column:is_online;not null;comment:Is online information: 0 draft 1 online" json:"is_online"` // Is online information: 0 draft 1 online
|
||||
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
|
||||
AgentID int64 `gorm:"column:agent_id;not null;comment:When executing a multi instruction, which node executes the instruction" json:"agent_id"` // When executing a multi instruction, which node executes the instruction
|
||||
ShortcutIcon *playground.ShortcutFileInfo `gorm:"column:shortcut_icon;comment:shortcut icon;serializer:json" json:"shortcut_icon"` // shortcut icon
|
||||
PluginToolID int64 `gorm:"column:plugin_tool_id;not null;comment:tool_id" json:"plugin_tool_id"` // tool_id
|
||||
}
|
||||
|
||||
// TableName ShortcutCommand's table name
|
||||
|
||||
@@ -56,33 +56,33 @@ func newShortcutCommand(db *gorm.DB, opts ...gen.DOOption) shortcutCommand {
|
||||
return _shortcutCommand
|
||||
}
|
||||
|
||||
// shortcutCommand bot快捷指令表
|
||||
// shortcutCommand bot shortcut command table
|
||||
type shortcutCommand struct {
|
||||
shortcutCommandDo
|
||||
|
||||
ALL field.Asterisk
|
||||
ID field.Int64 // 主键ID
|
||||
ObjectID field.Int64 // 实体ID,该实体可用这个指令
|
||||
CommandID field.Int64 // 命令ID
|
||||
CommandName field.String // 命令名称
|
||||
ShortcutCommand field.String // 快捷指令
|
||||
Description field.String // 命令描述
|
||||
SendType field.Int32 // 发送类型 0:query 1:panel
|
||||
ToolType field.Int32 // 使用工具的type 1:workFlow 2:插件
|
||||
WorkFlowID field.Int64 // 使用workFlow的id
|
||||
PluginID field.Int64 // 使用插件的id
|
||||
PluginToolName field.String // 使用插件的api_name
|
||||
TemplateQuery field.String // query模板
|
||||
Components field.Field // panel参数
|
||||
CardSchema field.String // 卡片schema
|
||||
ToolInfo field.Field // 工具信息 包含name+变量列表
|
||||
Status field.Int32 // 状态,0无效,1有效
|
||||
CreatorID field.Int64 // 创建者ID
|
||||
IsOnline field.Int32 // 是否为线上信息 0草稿 1线上
|
||||
CreatedAt field.Int64 // 创建时间
|
||||
UpdatedAt field.Int64 // 更新时间
|
||||
AgentID field.Int64 // multi的指令时,该指令由哪个节点执行
|
||||
ShortcutIcon field.Field // 快捷指令图标
|
||||
ID field.Int64 // id
|
||||
ObjectID field.Int64 // Entity ID, this command can be used for this entity
|
||||
CommandID field.Int64 // command id
|
||||
CommandName field.String // command name
|
||||
ShortcutCommand field.String // shortcut command
|
||||
Description field.String // description
|
||||
SendType field.Int32 // send type 0:query 1:panel
|
||||
ToolType field.Int32 // Type 1 of tool used: WorkFlow 2: Plugin
|
||||
WorkFlowID field.Int64 // workflow id
|
||||
PluginID field.Int64 // plugin id
|
||||
PluginToolName field.String // plugin tool name
|
||||
TemplateQuery field.String // template query
|
||||
Components field.Field // Panel parameters
|
||||
CardSchema field.String // card schema
|
||||
ToolInfo field.Field // Tool information includes name+variable list
|
||||
Status field.Int32 // Status, 0 is invalid, 1 is valid
|
||||
CreatorID field.Int64 // creator id
|
||||
IsOnline field.Int32 // Is online information: 0 draft 1 online
|
||||
CreatedAt field.Int64 // Create Time in Milliseconds
|
||||
UpdatedAt field.Int64 // Update Time in Milliseconds
|
||||
AgentID field.Int64 // When executing a multi instruction, which node executes the instruction
|
||||
ShortcutIcon field.Field // shortcut icon
|
||||
PluginToolID field.Int64 // tool_id
|
||||
|
||||
fieldMap map[string]field.Expr
|
||||
|
||||
Reference in New Issue
Block a user