[octopus-go] 初步完成gin gorm框架集成

This commit is contained in:
zeaslity
2023-03-07 17:32:35 +08:00
parent a18f2353a9
commit da56f6586c
9 changed files with 416 additions and 1 deletions

11
agent-go/entity/global.go Normal file
View File

@@ -0,0 +1,11 @@
package entity
import (
"gorm.io/gorm"
)
type GloablConfig struct {
DB *gorm.DB
}
var CONGIG = new(GloablConfig)