refactor: 收口技能与专员目录定义
统一 skill 与 specialist 清单,移除旧的 office 执行包与下线对象,并补入 text_to_speech、customer_followup 等当前目录定义与种子数据。
This commit is contained in:
@@ -11,8 +11,10 @@ type SkillDefinition struct {
|
||||
EAILogicCode string `gorm:"column:eailogic_code;size:32;default:'';index" json:"eailogic_code"`
|
||||
Description string `gorm:"type:text" json:"description"`
|
||||
ObjectKind string `gorm:"column:object_kind;size:32;not null;default:skill;index" json:"object_kind"`
|
||||
Source string `gorm:"size:32;not null;default:eai;index" json:"source"`
|
||||
ObjectEntryRoute string `gorm:"column:object_entry_route;size:128;default:''" json:"object_entry_route"`
|
||||
Source string `gorm:"size:32;not null;default:eai;index" json:"source"`
|
||||
ObjectEntryRoute string `gorm:"column:object_entry_route;size:128;default:''" json:"object_entry_route"` // 业务对象进入入口(D26 口径)
|
||||
Color string `gorm:"size:16;default:''" json:"color"` // 展示主色(面向用户展示层,唯一的真值在后端)
|
||||
InteractionCardJSON string `gorm:"column:interaction_card_json;type:text" json:"interaction_card_json"` // 交互卡对象(JSON,snake_case 与专员一致)
|
||||
// 这里**有意不写** `default:true`。带上它,GORM 在 Create 时会跳过布尔零值字段
|
||||
// (false 被当成「没填」),改由库默认值 true 生效 —— 于是对象显式设的 false
|
||||
// 被持久层改写成 true,创建接口永远设不出「不暴露给用户」的技能。
|
||||
|
||||
Reference in New Issue
Block a user