feat: add workbench AI integration

This commit is contained in:
richjohnrambo
2026-09-28 11:28:24 +08:00
parent 5bf68727fa
commit 8773991015
19 changed files with 6971 additions and 10 deletions
+6
View File
@@ -135,6 +135,9 @@ func (s *Store) WorkbenchModules(ctx context.Context, userID int64) ([]Workbench
err := s.db.SelectContext(ctx, &modules, `SELECT code,name,IFNULL(icon_file_id,'') AS icon_file_id,route,sort_order,0 AS unread_count,enabled,permission
FROM im_workbench_apps WHERE tenant_id=? AND enabled=1 ORDER BY sort_order ASC,id ASC`, s.tenant())
if err != nil {
if isMissingTable(err) {
return []WorkbenchModule{}, 1, nil
}
return nil, 0, err
}
for i := range modules {
@@ -436,6 +439,9 @@ func (s *Store) Meeting(ctx context.Context, userID int64, meetingID string) (*M
if errors.Is(err, sql.ErrNoRows) {
return nil, ErrNotFound
}
if isMissingTable(err) {
return nil, ErrNotFound
}
return nil, err
}
meeting.Participants, _ = s.meetingParticipants(ctx, meeting.MeetingID)