[优化] 代码优化

This commit is contained in:
ryan
2026-05-31 20:31:57 +08:00
parent 7ab11154e3
commit 2514e7edc4
5 changed files with 46 additions and 71 deletions
+5 -5
View File
@@ -2,10 +2,6 @@ package model
import (
"fmt"
"github.com/glebarez/sqlite"
"gorm.io/driver/postgres"
"gorm.io/gorm"
"gorm.io/gorm/schema"
"log/slog"
"openflare/common"
"openflare/utils/security"
@@ -13,6 +9,11 @@ import (
"reflect"
"strings"
"sync"
"github.com/glebarez/sqlite"
"gorm.io/driver/postgres"
"gorm.io/gorm"
"gorm.io/gorm/schema"
)
var DB *gorm.DB
@@ -25,7 +26,6 @@ type dbModel struct {
func registeredModels() []any {
return []any{
&File{},
&User{},
&AuthSource{},
&ExternalAccount{},