代码重构-基于gin,gorm

This commit is contained in:
meilin.huang
2021-04-16 15:10:07 +08:00
parent a1141a405a
commit ec1001d88b
84 changed files with 1445 additions and 1424 deletions

17
base/global/global.go Normal file
View File

@@ -0,0 +1,17 @@
package global
import (
"mayfly-go/base/config"
"mayfly-go/base/mlog"
"gorm.io/gorm"
)
// 日志
var Log = mlog.Log
// config.yml配置文件映射对象
var Config = config.Conf
// gorm
var Db *gorm.DB