🎨 重构用户端前端为vue开发,完善基础类和角色相关接口

This commit is contained in:
2026-02-10 21:55:45 +08:00
parent db934ebed7
commit 56e821b222
92 changed files with 18377 additions and 21 deletions

View File

@@ -41,8 +41,8 @@ func RegisterTables() {
return
}
// 初始化 PostgreSQL 扩展pgvector
InitPgSQLExtensions()
// 初始化 PostgreSQL 扩展(仅创建 pgvector 扩展
InitPgSQLExtension()
db := global.GVA_DB
err := db.AutoMigrate(
@@ -100,6 +100,9 @@ func RegisterTables() {
os.Exit(0)
}
// 创建向量索引(必须在 AutoMigrate 之后)
CreateVectorIndexes()
err = bizModel()
if err != nil {