enterprise/common/dao/dao.go

16 lines
131 B
Go
Raw Normal View History

2023-08-04 18:27:37 +08:00
package dao
import "gorm.io/gorm"
var (
db *gorm.DB
)
func SetDB(d *gorm.DB) {
db = d
}
func GetDB() *gorm.DB {
return db
}