GITLAB

Hermes / api-game

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • api-game_qianyi
  • configs
  • confglobal
  • get.go
  • 4611a69d   feat✨:房间排行活动:机器人名字和头像处理 Browse Code »
    王家文
    2024-04-22 16:36:30 +0800  
get.go 349 Bytes
Edit Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
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
}