package confglobal import ( "apigame/configs/confbase" "errors" ) // GetConfig 获取 api游戏配置 func GetConfig(gameId string) (conf *GlobalConfig, err error) { conf = new(GlobalConfig) has := confbase.GetConfig[*GlobalConfig, Raw](gameId, gameId, conf) if !has { err = errors.New("confglobal.GetConfig error") return } return }