init
This commit is contained in:
17
global/var.go
Normal file
17
global/var.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package global
|
||||
|
||||
import (
|
||||
"energy-management-system/config"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
var (
|
||||
// AppConf 配置信息
|
||||
AppConf *config.Config
|
||||
// Db 数据库
|
||||
Db *gorm.DB
|
||||
|
||||
// Trans 定义一个全局翻译器T
|
||||
//Trans ut.Translator
|
||||
//Validate *validator.Validate
|
||||
)
|
||||
Reference in New Issue
Block a user