阿巴阿巴

This commit is contained in:
des
2026-01-22 11:31:04 +08:00
parent d09d9d9f1a
commit 688177ba06
3 changed files with 6 additions and 9 deletions

View File

@@ -1,4 +1,4 @@
package common
package database
import (
"Crimson-Gatekeeper/internal/query"
@@ -44,7 +44,6 @@ func GetDataBaseClient() *gorm.DB {
poolCfg.SetConnMaxIdleTime(3)
poolCfg.SetMaxOpenConns(10)
fmt.Println("构建数据库链接")
return client
}

View File

@@ -30,6 +30,6 @@ func (t *TestBoot) Run() error {
return nil
}
func NewTestBoot(q *query.Query) *TestBoot {
return &TestBoot{q}
func NewTestBoot(q []*query.Query) *TestBoot {
return &TestBoot{q[0]}
}