feat:优化信息
This commit is contained in:
@ -6,7 +6,6 @@ import (
|
||||
"ArmedPolice/lib"
|
||||
"ArmedPolice/serve/orm"
|
||||
"ArmedPolice/utils"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
type synchronized struct {
|
||||
@ -60,7 +59,7 @@ func initModel() {
|
||||
|
||||
function := func(synchronized ...*synchronized) {
|
||||
for _, v := range synchronized {
|
||||
fmt.Println(db.Migrator().HasTable(v.iModel))
|
||||
|
||||
if !db.Migrator().HasTable(v.iModel) {
|
||||
_ = db.Migrator().CreateTable(v.iModel)
|
||||
|
||||
|
Reference in New Issue
Block a user