42 lines
800 B
Go
42 lines
800 B
Go
package stat
|
|
|
|
import (
|
|
"golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk"
|
|
"golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk/requests"
|
|
)
|
|
|
|
const (
|
|
VERSION = "2020-11-16"
|
|
)
|
|
|
|
var HOST = requests.Host{
|
|
Default: "stat",
|
|
}
|
|
|
|
type Client struct {
|
|
sdk.Client
|
|
}
|
|
|
|
func NewClient() (client *Client, err error) {
|
|
client = new(Client)
|
|
err = client.Init()
|
|
return
|
|
}
|
|
|
|
// SyncGameServerList 同步开服数据
|
|
func (c *Client) SyncGameServerList(req *SyncGameServerListReq) (resp *SyncGameServerListResp, err error) {
|
|
resp = CreateSyncGameServerListResp()
|
|
err = c.DoAction(req, resp)
|
|
if err != nil {
|
|
return
|
|
}
|
|
|
|
return
|
|
}
|
|
|
|
func (c *Client) SetUserNewGameAuth(req *SetUserNewGameAuthReq) (resp *SetUserNewGameAuthResp, err error) {
|
|
resp = CreateSetUserNewGameAuthResp()
|
|
err = c.DoAction(req, resp)
|
|
return
|
|
}
|