尝试引入 go-spring
This commit is contained in:
@@ -2,19 +2,13 @@ package main
|
||||
|
||||
import (
|
||||
"Crimson-Gatekeeper/internal/common"
|
||||
"fmt"
|
||||
|
||||
"gorm.io/gen"
|
||||
)
|
||||
|
||||
func main() {
|
||||
client, clean := common.GetDataBaseClient()
|
||||
defer func() {
|
||||
err := clean()
|
||||
if err != nil {
|
||||
fmt.Println("关闭数据库链接失败")
|
||||
}
|
||||
}()
|
||||
client, clean, _ := common.GetDataBaseClient()
|
||||
defer clean()
|
||||
g := gen.NewGenerator(gen.Config{
|
||||
OutPath: "./internal/query",
|
||||
ModelPkgPath: "./internal/model",
|
||||
|
||||
Reference in New Issue
Block a user