[octopus-go] 初步完成gin gorm框架集成
This commit is contained in:
11
agent-go/entity/global.go
Normal file
11
agent-go/entity/global.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package entity
|
||||
|
||||
import (
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
type GloablConfig struct {
|
||||
DB *gorm.DB
|
||||
}
|
||||
|
||||
var CONGIG = new(GloablConfig)
|
||||
Reference in New Issue
Block a user