This commit is contained in:
2024-08-26 17:20:13 +08:00
commit 51090658a2
39 changed files with 2231 additions and 0 deletions

17
global/var.go Normal file
View 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
)