权限,列表,详情

This commit is contained in:
2026-08-11 14:37:57 +08:00
parent 44c4aed22e
commit 8d14a63621
15 changed files with 1177 additions and 129 deletions
+5 -1
View File
@@ -39,7 +39,11 @@ func GetConfigInt(key string) int {
return data[key]
}
func GetConfigInt64(key string) int64 { return runViper.GetInt64(key) }
func GetConfigBool(key string) bool { return runViper.GetBool(key) }
func GetConfigBool(key string) bool {
data := make(map[string]bool)
data["mysql.debug"] = true
return runViper.GetBool(key)
}
func InitConfig() {
loadOnce.Do(func() {