init: 数字员工平台初始代码
包含前端(Vue3 + VueFlow 画布)、后端(Go)、文档体系。 - 工作台画布:节点拖放、连线模式、右键菜单、AI 助手 - 后端:连接器 API、专员种子数据 - 导航:左侧导航、工坊、市场、控制台
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
package model
|
||||
|
||||
import "time"
|
||||
|
||||
// Course 课程表
|
||||
type Course struct {
|
||||
ID uint `gorm:"primaryKey" json:"id"`
|
||||
Code string `gorm:"size:32;uniqueIndex;not null" json:"code"`
|
||||
Name string `gorm:"size:128;not null" json:"name"`
|
||||
Category string `gorm:"size:32;not null;index" json:"category"` // capital_script/qualification_logic/ai_public_course/ai_platform_matching
|
||||
TargetCustomers string `gorm:"type:text" json:"target_customers"`
|
||||
ForbiddenCustomers string `gorm:"type:text" json:"forbidden_customers"`
|
||||
Scripts string `gorm:"type:text" json:"scripts"`
|
||||
SalesProcess string `gorm:"type:text" json:"sales_process"`
|
||||
ObjectionHandling string `gorm:"type:text" json:"objection_handling"`
|
||||
DeliveryPitfalls string `gorm:"type:text" json:"delivery_pitfalls"`
|
||||
ReportRules string `gorm:"type:text" json:"report_rules"`
|
||||
RelatedProductID *uint `gorm:"index" json:"related_product_id"`
|
||||
Status string `gorm:"size:16;not null;default:active;index" json:"status"` // active / inactive
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
UpdatedAt time.Time `json:"updated_at"`
|
||||
}
|
||||
|
||||
func (Course) TableName() string { return "course" }
|
||||
Reference in New Issue
Block a user