✨ add log config and gorm config
This commit is contained in:
14
global/global.go
Normal file
14
global/global.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package global
|
||||
|
||||
import (
|
||||
"github.com/sirupsen/logrus"
|
||||
"gorm.io/gorm"
|
||||
"schisandra-cloud-album/config"
|
||||
)
|
||||
|
||||
// Config 全局配置文件
|
||||
var (
|
||||
CONFIG *config.Config
|
||||
DB *gorm.DB
|
||||
LOG *logrus.Logger
|
||||
)
|
Reference in New Issue
Block a user