feat: 新增语音转文字(ASR)功能

- 后端:新增 /api/audio/transcribe 接口,调用 Ollama whisper 进行语音识别
- 前端:新增 AudioTranscribePage.vue 页面,支持 MP3/WAV/M4A/OGG/FLAC 等格式
- 注册路由、工具卡片、智能助手欢迎语更新

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
eaiadmin
2026-09-14 00:53:36 +08:00
co-authored by Claude Code
parent 752c7837ef
commit 0455f064ac
299 changed files with 1588 additions and 432 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" }