enterprise/common/dao/dao.go

21 lines
200 B
Go

package dao
import "gorm.io/gorm"
var (
db *gorm.DB
unifyDB *gorm.DB
)
func SetDB(d *gorm.DB) {
db = d
}
func SetUnifyDB(d *gorm.DB) {
unifyDB = d
}
func GetDB() *gorm.DB {
return db
}