gin-blog/global/setting.go

19 lines
413 B
Go

package global
import (
"blog/pkg/logger"
"blog/pkg/setting"
ut "github.com/go-playground/universal-translator"
)
var (
ServerSetting *setting.ServerSettingS
AppSetting *setting.AppSettingS
DatabaseSetting *setting.DatabaseSettingS
Logger *logger.Logger
JWTSetting *setting.JWT
EmailSetting *setting.EmailSettingS
ZhTrans ut.Translator
EnTrans ut.Translator
)