You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
package global
|
|
|
|
|
|
|
|
import (
|
|
|
|
"sync"
|
|
|
|
|
|
|
|
"github.com/rocboss/paopao-ce/pkg/setting"
|
|
|
|
"github.com/sirupsen/logrus"
|
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
Features *setting.FeaturesSettingS
|
|
|
|
ServerSetting *setting.ServerSettingS
|
|
|
|
AppSetting *setting.AppSettingS
|
|
|
|
MySQLSetting *setting.MySQLSettingS
|
|
|
|
RedisSetting *setting.RedisSettingS
|
|
|
|
SmsJuheSetting *setting.SmsJuheSettings
|
|
|
|
AlipaySetting *setting.AlipaySettingS
|
|
|
|
ZincSetting *setting.ZincSettingS
|
|
|
|
AliOSSSetting *setting.AliOSSSettingS
|
|
|
|
JWTSetting *setting.JWTSettingS
|
|
|
|
LoggerFileSetting *setting.LoggerFileSettingS
|
|
|
|
LoggerZincSetting *setting.LoggerZincSettingS
|
|
|
|
Logger *logrus.Logger
|
|
|
|
Mutex *sync.Mutex
|
|
|
|
)
|
|
|
|
|
|
|
|
func Cfg(key string) (string, bool) {
|
|
|
|
return Features.Cfg(key)
|
|
|
|
}
|
|
|
|
|
|
|
|
func CfgIf(expression string) bool {
|
|
|
|
return Features.CfgIf(expression)
|
|
|
|
}
|