GITLAB

Hermes / api-game

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • api-game_qianyi
  • configs
  • confapi
  • get.go
  • 89074b84   feat✨:配置框架重构回滚 Browse Code »
    王家文
    2024-05-30 22:26:40 +0800  
get.go 346 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 confapi

import (
	"apigame/configs/confbase"
	"errors"
)

// GetConfig 获取 api游戏配置
func GetConfig(gameId string) (conf *ApiGameConfig, err error) {

	conf = new(ApiGameConfig)
	has := confbase.GetConfig[*ApiGameConfig, Raw](gameId, gameId, conf)
	if !has {
		err = errors.New("confapi.GetConfig error")
		return
	}

	return
}