init: 数字员工平台初始代码

包含前端(Vue3 + VueFlow 画布)、后端(Go)、文档体系。
- 工作台画布:节点拖放、连线模式、右键菜单、AI 助手
- 后端:连接器 API、专员种子数据
- 导航:左侧导航、工坊、市场、控制台
This commit is contained in:
eaiadmin
2026-08-18 20:19:58 +08:00
commit 4e8817d768
239 changed files with 48631 additions and 0 deletions
@@ -0,0 +1,17 @@
package model
import "time"
// Notification 站内消息通知:考试发布 / 考试通过发证 / 岗位设置等事件推送给学员。
type Notification struct {
ID uint `gorm:"primaryKey" json:"id"`
UserID uint `gorm:"not null;index" json:"user_id"`
Type string `gorm:"size:32;not null;index" json:"type"` // exam_publish / exam_pass / position_set
Title string `gorm:"size:128;not null" json:"title"`
Content string `gorm:"type:text;not null" json:"content"`
Link string `gorm:"size:128;default:''" json:"link"` // 前端跳转路由
Read bool `gorm:"not null;default:false;index" json:"read"`
CreatedAt time.Time `json:"created_at"`
}
func (Notification) TableName() string { return "notification" }