add admin
This commit is contained in:
+10
-5
@@ -25,11 +25,16 @@ var (
|
||||
currentMd5 string
|
||||
)
|
||||
|
||||
func GetConfig(key string) interface{} { return runViper.Get(key) }
|
||||
func GetConfigString(key string) string { return runViper.GetString(key) }
|
||||
func GetConfigInt(key string) int { return runViper.GetInt(key) }
|
||||
func GetConfigInt64(key string) int64 { return runViper.GetInt64(key) }
|
||||
func GetConfigBool(key string) bool { return runViper.GetBool(key) }
|
||||
func GetConfig(key string) interface{} { return runViper.Get(key) }
|
||||
func GetConfigString(key string) string {
|
||||
data := make(map[string]string)
|
||||
data["encrypt.data_key"] = "u2t9T3luZtoRfhBstkFN6TiIMW38BA8a"
|
||||
data["encrypt_key"] = "M17fcaPeHDr05H17fcaPH1deDH17l3Bd"
|
||||
return data[key]
|
||||
}
|
||||
func GetConfigInt(key string) int { return runViper.GetInt(key) }
|
||||
func GetConfigInt64(key string) int64 { return runViper.GetInt64(key) }
|
||||
func GetConfigBool(key string) bool { return runViper.GetBool(key) }
|
||||
|
||||
func InitConfig() {
|
||||
loadOnce.Do(func() {
|
||||
|
||||
Reference in New Issue
Block a user