| 
									
										
										
										
											2024-09-12 14:27:03 +08:00
										 |  |  | package game | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | import ( | 
					
						
							|  |  |  | 	"golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk" | 
					
						
							|  |  |  | 	"golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk/requests" | 
					
						
							|  |  |  | ) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | const ( | 
					
						
							| 
									
										
										
										
											2025-05-28 17:57:52 +08:00
										 |  |  | 	VERSION = "2025-05-28" | 
					
						
							| 
									
										
										
										
											2024-09-12 14:27:03 +08:00
										 |  |  | ) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | var HOST = requests.Host{ | 
					
						
							|  |  |  | 	Default: "game", | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | type Client struct { | 
					
						
							|  |  |  | 	sdk.Client | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | func NewClient() (client *Client, err error) { | 
					
						
							|  |  |  | 	client = new(Client) | 
					
						
							|  |  |  | 	err = client.Init() | 
					
						
							|  |  |  | 	return | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // GetGameOsInfo 获取游戏系统信息
 | 
					
						
							|  |  |  | func (c *Client) GetGameOsInfo(req *GetGameOsInfoReq) (resp *GetGameOsInfoResp, err error) { | 
					
						
							|  |  |  | 	resp = CreateGetGameOsInfoResp() | 
					
						
							|  |  |  | 	err = c.DoAction(req, resp) | 
					
						
							|  |  |  | 	return | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2025-04-27 10:59:33 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | // GetGameInfo 获取游戏信息
 | 
					
						
							|  |  |  | func (c *Client) GetGameInfo(req *GetGameInfoReq) (resp *GetGameInfoResp, err error) { | 
					
						
							|  |  |  | 	resp = CreateGetGameInfoByIdResp() | 
					
						
							|  |  |  | 	err = c.DoAction(req, resp) | 
					
						
							|  |  |  | 	return | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2025-04-27 17:43:54 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | func (c *Client) GetChannelInfo(req *ChannelInfoReq) (resp *ChannelInfoResp, err error) { | 
					
						
							|  |  |  | 	resp = CreateChannelInfoResp() | 
					
						
							|  |  |  | 	err = c.DoAction(req, resp) | 
					
						
							|  |  |  | 	return | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2025-05-02 21:28:24 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | func (c *Client) GetLoginInfoById(req *GetLoginInfoByIdReq) (resp *GetLoginInfoByIdResp, err error) { | 
					
						
							|  |  |  | 	resp = CreateGetLoginInfoByIdResp() | 
					
						
							|  |  |  | 	err = c.DoAction(req, resp) | 
					
						
							|  |  |  | 	return | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | func (c *Client) GetProtocolByGameId(req *GetProtocolByGameIdRep) (resp *GetProtocolByGameIdResp, err error) { | 
					
						
							|  |  |  | 	resp = CreateGetProtocolByGameIdResp() | 
					
						
							|  |  |  | 	err = c.DoAction(req, resp) | 
					
						
							|  |  |  | 	return | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2025-05-29 12:09:18 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | // GetGameSimpleList 获取子游戏简单列表
 | 
					
						
							| 
									
										
										
										
											2025-05-28 17:57:52 +08:00
										 |  |  | func (c *Client) GetGameSimpleList(req *GetGameSimpleListReq) (resp *GetGameSimpleListResp, err error) { | 
					
						
							|  |  |  | 	resp = CreateGetGameSimpleListResp() | 
					
						
							|  |  |  | 	err = c.DoAction(req, resp) | 
					
						
							|  |  |  | 	return | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2025-05-29 12:09:18 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | // GetGameServerV2 获取游戏服务器列表v2
 | 
					
						
							|  |  |  | func (c *Client) GetGameServerV2(req *GetServerV2Request) (resp *GetServerV2Response, err error) { | 
					
						
							|  |  |  | 	resp = CreateGetServerV2Response() | 
					
						
							|  |  |  | 	err = c.DoAction(req, resp) | 
					
						
							|  |  |  | 	return | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2025-05-30 16:32:43 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | // GetGameCompany 获取单个根游戏信息
 | 
					
						
							|  |  |  | func (c *Client) GetGameCompany(req *GetGameCompanyReq) (resp *GetGameCompanyResp, err error) { | 
					
						
							|  |  |  | 	resp = CreateGetGameCompanyResp() | 
					
						
							|  |  |  | 	err = c.DoAction(req, resp) | 
					
						
							|  |  |  | 	return | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2025-06-10 19:46:35 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | // GetIsBlockOutIos 获取iOS切支付规则
 | 
					
						
							|  |  |  | func (c *Client) GetIsBlockOutIos(req *IsBlockOutIosReq) (resp *IsBlockOutIosResp, err error) { | 
					
						
							|  |  |  | 	resp = CreateIsBlockOutIosResp() | 
					
						
							|  |  |  | 	err = c.DoAction(req, resp) | 
					
						
							|  |  |  | 	return | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2025-06-20 12:09:20 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-06-20 15:44:41 +08:00
										 |  |  | func (c *Client) GetGameVersion(req *GetGameVersionReq) (resp *GetGameVersionResp, err error) { | 
					
						
							|  |  |  | 	resp = CreateGetGameVersionResp() | 
					
						
							| 
									
										
										
										
											2025-06-20 12:09:20 +08:00
										 |  |  | 	err = c.DoAction(req, resp) | 
					
						
							|  |  |  | 	return | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2025-07-10 11:42:07 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | // GetConfig 获取游戏全局配置
 | 
					
						
							|  |  |  | func (c *Client) GetConfig(req *GetConfigReq) (resp *GetConfigResp, err error) { | 
					
						
							|  |  |  | 	resp = CreateGetConfigResp() | 
					
						
							|  |  |  | 	err = c.DoAction(req, resp) | 
					
						
							|  |  |  | 	return | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2025-07-10 15:45:07 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | // GetRealAuthBlackList 获取实名黑名单
 | 
					
						
							|  |  |  | func (c *Client) GetRealAuthBlackList(req *GetRealAuthBlackListReq) (resp *GetRealAuthBlackListResp, err error) { | 
					
						
							|  |  |  | 	resp = CreateGetRealAuthBlackListResp() | 
					
						
							|  |  |  | 	err = c.DoAction(req, resp) | 
					
						
							|  |  |  | 	return | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2025-07-10 18:05:09 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | // GetGameRealAuthInfo 获取实名参数
 | 
					
						
							|  |  |  | func (c *Client) GetGameRealAuthInfo(req *GetGameRealAuthInfoReq) (resp *GetGameRealAuthInfoResp, err error) { | 
					
						
							|  |  |  | 	resp = CreateGetGameRealAuthInfoResp() | 
					
						
							|  |  |  | 	err = c.DoAction(req, resp) | 
					
						
							|  |  |  | 	return | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2025-08-15 17:41:18 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | // GetProtocolByCompany 根据主体获取用户协议
 | 
					
						
							|  |  |  | func (c *Client) GetProtocolByCompany(req *GetProtocolByCompanyRep) (resp *GetProtocolByCompanyResp, err error) { | 
					
						
							|  |  |  | 	resp = CreateGetProtocolByCompanyResp() | 
					
						
							|  |  |  | 	err = c.DoAction(req, resp) | 
					
						
							|  |  |  | 	return | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2025-08-29 17:12:22 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | // KickUser 踢人
 | 
					
						
							|  |  |  | func (c *Client) KickUser(req *KickUserReq) (resp *KickUserResp, err error) { | 
					
						
							|  |  |  | 	resp = CreateKickUserResp() | 
					
						
							|  |  |  | 	err = c.DoAction(req, resp) | 
					
						
							|  |  |  | 	return | 
					
						
							|  |  |  | } |