package confroomrank import "apigame/configs/confbase" // GetCurrent 获取 当前配置 func GetCurrent(gameId string, topType int) (conf *ActivityConfig, has bool) { conf = new(ActivityConfig) conf.Typ = topType has = confbase.GetCurrent[*ActivityConfig, ActivityConfigRaw](gameId, conf) return } // GetConfig 获取 配置根据Id func GetConfig(gameId string, confId int64) (conf *ActivityConfig, has bool) { conf = new(ActivityConfig) has = confbase.GetConfig[*ActivityConfig, ActivityConfigRaw](gameId, confId, conf) return }