chore: 工作台产品化进行中的改动
把工作区里其余在制品一并入库,主要是工作台产品化的推进:
后端:新增 capability_definition / project / my_app_center / office_skill
接口与 action_definition / skill_definition / project / user_app_center
模型,config 加路由健康上报。
前端:新增 frontend/src/skills(Office 技能与 workbuddy 复刻)、
项目管理、应用中心、能力目录页,以及配套 api / store / config;
聊天侧新增 SpecialistChip / SpecialistPanel / SkillStrip / AppChatRail
等组件。
清理:移除旧 views/tools 下的单页工具(已并入工作台)、_frozen 冻结组件、
cmd/inspect_oa_debug 调试入口,以及两份调试笔记。
其它:文档与启动脚本同步。
(这批改动与上一提交的 SY23 工作并行进行,此前已在同一工作区内交织。)
Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
package model
|
||||
|
||||
import "time"
|
||||
|
||||
// Project 项目:任务的容器。
|
||||
//
|
||||
// 任务记「做的是哪件事」,项目记「这些事是为谁、按什么规矩做的」——
|
||||
// 指令是给 AI 的长期上下文,预置的专员/技能/连接器是这个项目默认带上的能力。
|
||||
// 归属跟 WorkerTask.Owner 同构(全名优先,回退登录名),列表只列自己的。
|
||||
type Project struct {
|
||||
ID uint `gorm:"primaryKey" json:"id"`
|
||||
Name string `gorm:"size:40;not null" json:"name"`
|
||||
Instruction string `gorm:"type:text" json:"instruction"`
|
||||
TemplateKey string `gorm:"size:64;default:''" json:"template_key"`
|
||||
Owner string `gorm:"size:64;not null;index" json:"owner"`
|
||||
Pinned bool `gorm:"not null;default:false" json:"pinned"`
|
||||
// 建项目时选中的能力,存 JSON 数组字符串。key 各自指向 specialist.key /
|
||||
// skill.key / connector.key —— 只存 key,展示时再去取名字。
|
||||
SpecialistKeys string `gorm:"type:text" json:"specialist_keys"`
|
||||
SkillKeys string `gorm:"column:skill_keys;type:text" json:"skill_keys"`
|
||||
ConnectorKeys string `gorm:"type:text" json:"connector_keys"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
UpdatedAt time.Time `json:"updated_at"`
|
||||
}
|
||||
|
||||
func (Project) TableName() string { return "project" }
|
||||
Reference in New Issue
Block a user