阿巴阿巴
This commit is contained in:
@@ -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
|
||||
}
|
||||
@@ -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]}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user