- 后端:新增 /api/audio/transcribe 接口,调用 Ollama whisper 进行语音识别 - 前端:新增 AudioTranscribePage.vue 页面,支持 MP3/WAV/M4A/OGG/FLAC 等格式 - 注册路由、工具卡片、智能助手欢迎语更新 Co-Authored-By: Claude Code <noreply@anthropic.com>
17 lines
729 B
Go
17 lines
729 B
Go
package model
|
|
|
|
import "time"
|
|
|
|
// Department 部门字典表:企业组织架构,供用户「部门」字段选择与按部门学情统计。
|
|
// 用户以 user.department 字符串归属(历史兼容),部门改名时后端同步该字符串。
|
|
type Department struct {
|
|
ID uint `gorm:"primaryKey" json:"id"`
|
|
Name string `gorm:"size:64;not null;uniqueIndex" json:"name"`
|
|
Description string `gorm:"size:255;default:''" json:"description"`
|
|
Status string `gorm:"size:16;not null;default:active;index" json:"status"` // active / inactive
|
|
CreatedAt time.Time `json:"created_at"`
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
}
|
|
|
|
func (Department) TableName() string { return "department" }
|