feat: manually mirror opencoze's code from bytedance

Change-Id: I09a73aadda978ad9511264a756b2ce51f5761adf
This commit is contained in:
fanlv
2025-07-20 17:36:12 +08:00
commit 890153324f
14811 changed files with 1923430 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
package model
import (
"github.com/coze-dev/coze-studio/backend/api/model/ocean/cloud/bot_common"
"gorm.io/gorm"
)
const TableNameSingleAgentDraft = "single_agent_draft"
// SingleAgentDraft Single Agent Draft Copy Table
type SingleAgentDraft struct {
ID int64 `gorm:"column:id;primaryKey;autoIncrement:true;comment:Primary Key ID" json:"id"` // Primary Key ID
AgentID int64 `gorm:"column:agent_id;not null;comment:Agent ID" json:"agent_id"` // Agent 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
Name string `gorm:"column:name;not null;comment:Agent Name" json:"name"` // Agent Name
Description string `gorm:"column:description;not null;comment:Agent Description" json:"description"` // Agent Description
IconURI string `gorm:"column:icon_uri;not null;comment:Icon URI" json:"icon_uri"` // Icon URI
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
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;comment:delete time in millisecond" json:"deleted_at"` // delete time in millisecond
VariablesMetaID *int64 `gorm:"column:variables_meta_id;comment:variables meta 表 ID" json:"variables_meta_id"` // variables meta 表 ID
ModelInfo *bot_common.ModelInfo `gorm:"column:model_info;comment:Model Configuration Information;serializer:json" json:"model_info"` // Model Configuration Information
OnboardingInfo *bot_common.OnboardingInfo `gorm:"column:onboarding_info;comment:Onboarding Information;serializer:json" json:"onboarding_info"` // Onboarding Information
Prompt *bot_common.PromptInfo `gorm:"column:prompt;comment:Agent Prompt Configuration;serializer:json" json:"prompt"` // Agent Prompt Configuration
Plugin []*bot_common.PluginInfo `gorm:"column:plugin;comment:Agent Plugin Base Configuration;serializer:json" json:"plugin"` // Agent Plugin Base Configuration
Knowledge *bot_common.Knowledge `gorm:"column:knowledge;comment:Agent Knowledge Base Configuration;serializer:json" json:"knowledge"` // Agent Knowledge Base Configuration
Workflow []*bot_common.WorkflowInfo `gorm:"column:workflow;comment:Agent Workflow Configuration;serializer:json" json:"workflow"` // Agent Workflow Configuration
SuggestReply *bot_common.SuggestReplyInfo `gorm:"column:suggest_reply;comment:Suggested Replies;serializer:json" json:"suggest_reply"` // Suggested Replies
JumpConfig *bot_common.JumpConfig `gorm:"column:jump_config;comment:Jump Configuration;serializer:json" json:"jump_config"` // Jump Configuration
BackgroundImageInfoList []*bot_common.BackgroundImageInfo `gorm:"column:background_image_info_list;comment:Background image;serializer:json" json:"background_image_info_list"` // Background image
DatabaseConfig []*bot_common.Database `gorm:"column:database_config;comment:Agent Database Base Configuration;serializer:json" json:"database_config"` // Agent Database Base Configuration
ShortcutCommand []string `gorm:"column:shortcut_command;comment:shortcut command;serializer:json" json:"shortcut_command"` // shortcut command
}
// TableName SingleAgentDraft's table name
func (*SingleAgentDraft) TableName() string {
return TableNameSingleAgentDraft
}

View File

@@ -0,0 +1,28 @@
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
package model
const TableNameSingleAgentPublish = "single_agent_publish"
// SingleAgentPublish bot 渠道和发布版本流水表
type SingleAgentPublish struct {
ID int64 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键id" json:"id"` // 主键id
AgentID int64 `gorm:"column:agent_id;not null;comment:agent_id" json:"agent_id"` // agent_id
PublishID string `gorm:"column:publish_id;not null;comment:发布 id" json:"publish_id"` // 发布 id
ConnectorIds []int64 `gorm:"column:connector_ids;comment:发布的 connector_ids;serializer:json" json:"connector_ids"` // 发布的 connector_ids
Version string `gorm:"column:version;not null;comment:Agent Version" json:"version"` // Agent Version
PublishInfo *string `gorm:"column:publish_info;comment:发布信息" json:"publish_info"` // 发布信息
PublishTime int64 `gorm:"column:publish_time;not null;comment:发布时间" json:"publish_time"` // 发布时间
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
CreatorID int64 `gorm:"column:creator_id;not null;comment:发布人 user_id" json:"creator_id"` // 发布人 user_id
Status int32 `gorm:"column:status;not null;comment:状态 0:使用中 1:删除 3:禁用" json:"status"` // 状态 0:使用中 1:删除 3:禁用
Extra *string `gorm:"column:extra;comment:扩展字段" json:"extra"` // 扩展字段
}
// TableName SingleAgentPublish's table name
func (*SingleAgentPublish) TableName() string {
return TableNameSingleAgentPublish
}

View File

@@ -0,0 +1,45 @@
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
package model
import (
"github.com/coze-dev/coze-studio/backend/api/model/ocean/cloud/bot_common"
"gorm.io/gorm"
)
const TableNameSingleAgentVersion = "single_agent_version"
// SingleAgentVersion Single Agent Version Copy Table
type SingleAgentVersion struct {
ID int64 `gorm:"column:id;primaryKey;autoIncrement:true;comment:Primary Key ID" json:"id"` // Primary Key ID
AgentID int64 `gorm:"column:agent_id;not null;comment:Agent ID" json:"agent_id"` // Agent 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
Name string `gorm:"column:name;not null;comment:Agent Name" json:"name"` // Agent Name
Description string `gorm:"column:description;not null;comment:Agent Description" json:"description"` // Agent Description
IconURI string `gorm:"column:icon_uri;not null;comment:Icon URI" json:"icon_uri"` // Icon URI
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
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;comment:delete time in millisecond" json:"deleted_at"` // delete time in millisecond
VariablesMetaID *int64 `gorm:"column:variables_meta_id;comment:variables meta 表 ID" json:"variables_meta_id"` // variables meta 表 ID
ModelInfo *bot_common.ModelInfo `gorm:"column:model_info;comment:Model Configuration Information;serializer:json" json:"model_info"` // Model Configuration Information
OnboardingInfo *bot_common.OnboardingInfo `gorm:"column:onboarding_info;comment:Onboarding Information;serializer:json" json:"onboarding_info"` // Onboarding Information
Prompt *bot_common.PromptInfo `gorm:"column:prompt;comment:Agent Prompt Configuration;serializer:json" json:"prompt"` // Agent Prompt Configuration
Plugin []*bot_common.PluginInfo `gorm:"column:plugin;comment:Agent Plugin Base Configuration;serializer:json" json:"plugin"` // Agent Plugin Base Configuration
Knowledge *bot_common.Knowledge `gorm:"column:knowledge;comment:Agent Knowledge Base Configuration;serializer:json" json:"knowledge"` // Agent Knowledge Base Configuration
Workflow []*bot_common.WorkflowInfo `gorm:"column:workflow;comment:Agent Workflow Configuration;serializer:json" json:"workflow"` // Agent Workflow Configuration
SuggestReply *bot_common.SuggestReplyInfo `gorm:"column:suggest_reply;comment:Suggested Replies;serializer:json" json:"suggest_reply"` // Suggested Replies
JumpConfig *bot_common.JumpConfig `gorm:"column:jump_config;comment:Jump Configuration;serializer:json" json:"jump_config"` // Jump Configuration
ConnectorID int64 `gorm:"column:connector_id;not null;comment:Connector ID" json:"connector_id"` // Connector ID
Version string `gorm:"column:version;not null;comment:Agent Version" json:"version"` // Agent Version
BackgroundImageInfoList []*bot_common.BackgroundImageInfo `gorm:"column:background_image_info_list;comment:Background image;serializer:json" json:"background_image_info_list"` // Background image
DatabaseConfig []*bot_common.Database `gorm:"column:database_config;comment:Agent Database Base Configuration;serializer:json" json:"database_config"` // Agent Database Base Configuration
ShortcutCommand []string `gorm:"column:shortcut_command;comment:shortcut command;serializer:json" json:"shortcut_command"` // shortcut command
}
// TableName SingleAgentVersion's table name
func (*SingleAgentVersion) TableName() string {
return TableNameSingleAgentVersion
}