Documentation ¶
Overview ¶
Package cloudgame 包含云游戏API相关结构体
Index ¶
- type AlibabaCgameAvatarUserbodyQueryAPIRequest
- func (r AlibabaCgameAvatarUserbodyQueryAPIRequest) GetApiMethodName() string
- func (r AlibabaCgameAvatarUserbodyQueryAPIRequest) GetApiParams() url.Values
- func (r AlibabaCgameAvatarUserbodyQueryAPIRequest) GetMixUserId() string
- func (r *AlibabaCgameAvatarUserbodyQueryAPIRequest) SetMixUserId(_mixUserId string) error
- type AlibabaCgameAvatarUserbodyQueryAPIResponse
- type AlibabaCgameAvatarUserbodyQueryAPIResponseModel
- type AlibabaCgameAvatarUserbodyQueryData
- type AlibabaCgameAvatarUserbodyQueryResult
- type AlibabaCgameScoreReportAPIRequest
- func (r AlibabaCgameScoreReportAPIRequest) GetApiMethodName() string
- func (r AlibabaCgameScoreReportAPIRequest) GetApiParams() url.Values
- func (r AlibabaCgameScoreReportAPIRequest) GetReportData() *CpCallbackReportDto
- func (r *AlibabaCgameScoreReportAPIRequest) SetReportData(_reportData *CpCallbackReportDto) error
- type AlibabaCgameScoreReportAPIResponse
- type AlibabaCgameScoreReportAPIResponseModel
- type AlibabaCgameScoreReportResult
- type AlibabaCloudgameUserMixuseridCheckAPIRequest
- func (r AlibabaCloudgameUserMixuseridCheckAPIRequest) GetApiMethodName() string
- func (r AlibabaCloudgameUserMixuseridCheckAPIRequest) GetApiParams() url.Values
- func (r AlibabaCloudgameUserMixuseridCheckAPIRequest) GetMixUserId() string
- func (r *AlibabaCloudgameUserMixuseridCheckAPIRequest) SetMixUserId(_mixUserId string) error
- type AlibabaCloudgameUserMixuseridCheckAPIResponse
- type AlibabaCloudgameUserMixuseridCheckAPIResponseModel
- type CpCallbackReportDto
- type ScoreReportDto
- type YoukuCgameScoreReportAPIRequest
- func (r YoukuCgameScoreReportAPIRequest) GetApiMethodName() string
- func (r YoukuCgameScoreReportAPIRequest) GetApiParams() url.Values
- func (r YoukuCgameScoreReportAPIRequest) GetScoreReportDto() *ScoreReportDto
- func (r *YoukuCgameScoreReportAPIRequest) SetScoreReportDto(_scoreReportDto *ScoreReportDto) error
- type YoukuCgameScoreReportAPIResponse
- type YoukuCgameScoreReportAPIResponseModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlibabaCgameAvatarUserbodyQueryAPIRequest ¶ added in v1.2.0
type AlibabaCgameAvatarUserbodyQueryAPIRequest struct { model.Params // contains filtered or unexported fields }
AlibabaCgameAvatarUserbodyQueryAPIRequest 用户Avatar body查询 API请求 alibaba.cgame.avatar.userbody.query
Avatar用户body数据查询
func NewAlibabaCgameAvatarUserbodyQueryRequest ¶
func NewAlibabaCgameAvatarUserbodyQueryRequest() *AlibabaCgameAvatarUserbodyQueryAPIRequest
NewAlibabaCgameAvatarUserbodyQueryRequest 初始化AlibabaCgameAvatarUserbodyQueryAPIRequest对象
func (AlibabaCgameAvatarUserbodyQueryAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r AlibabaCgameAvatarUserbodyQueryAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AlibabaCgameAvatarUserbodyQueryAPIRequest) GetApiParams ¶ added in v1.2.0
func (r AlibabaCgameAvatarUserbodyQueryAPIRequest) GetApiParams() url.Values
GetApiParams IRequest interface 方法, 获取API参数
func (AlibabaCgameAvatarUserbodyQueryAPIRequest) GetMixUserId ¶ added in v1.2.0
func (r AlibabaCgameAvatarUserbodyQueryAPIRequest) GetMixUserId() string
GetMixUserId MixUserId Getter
func (*AlibabaCgameAvatarUserbodyQueryAPIRequest) SetMixUserId ¶ added in v1.2.0
func (r *AlibabaCgameAvatarUserbodyQueryAPIRequest) SetMixUserId(_mixUserId string) error
SetMixUserId is MixUserId Setter 查询数据所属用户的mixUserId
type AlibabaCgameAvatarUserbodyQueryAPIResponse ¶
type AlibabaCgameAvatarUserbodyQueryAPIResponse struct { model.CommonResponse AlibabaCgameAvatarUserbodyQueryAPIResponseModel }
AlibabaCgameAvatarUserbodyQueryAPIResponse 用户Avatar body查询 API返回值 alibaba.cgame.avatar.userbody.query
Avatar用户body数据查询
type AlibabaCgameAvatarUserbodyQueryAPIResponseModel ¶ added in v1.2.0
type AlibabaCgameAvatarUserbodyQueryAPIResponseModel struct { XMLName xml.Name `xml:"alibaba_cgame_avatar_userbody_query_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 接口返回model Result *AlibabaCgameAvatarUserbodyQueryResult `json:"result,omitempty" xml:"result,omitempty"` }
AlibabaCgameAvatarUserbodyQueryAPIResponseModel is 用户Avatar body查询 成功返回结果
type AlibabaCgameAvatarUserbodyQueryData ¶
type AlibabaCgameAvatarUserbodyQueryData struct { // body traceID TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` // 脸部数据 FaceDataJson string `json:"face_data_json,omitempty" xml:"face_data_json,omitempty"` // 请求唯一标识ID RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 用户mixUserId MixUserId string `json:"mix_user_id,omitempty" xml:"mix_user_id,omitempty"` // 扩展数据 ExtInfo string `json:"ext_info,omitempty" xml:"ext_info,omitempty"` // 性别, 1-male, 2-female Gender int64 `json:"gender,omitempty" xml:"gender,omitempty"` }
AlibabaCgameAvatarUserbodyQueryData 结构体
type AlibabaCgameAvatarUserbodyQueryResult ¶
type AlibabaCgameAvatarUserbodyQueryResult struct { // code Code string `json:"code,omitempty" xml:"code,omitempty"` // message Message string `json:"message,omitempty" xml:"message,omitempty"` // 响应数据 Data *AlibabaCgameAvatarUserbodyQueryData `json:"data,omitempty" xml:"data,omitempty"` // 是否成功 Success bool `json:"success,omitempty" xml:"success,omitempty"` }
AlibabaCgameAvatarUserbodyQueryResult 结构体
type AlibabaCgameScoreReportAPIRequest ¶ added in v1.2.0
type AlibabaCgameScoreReportAPIRequest struct { model.Params // contains filtered or unexported fields }
AlibabaCgameScoreReportAPIRequest 云游戏战绩上传通用接口 API请求 alibaba.cgame.score.report
阿里云游戏, CP游戏合作方通用游戏结果回传接口
func NewAlibabaCgameScoreReportRequest ¶
func NewAlibabaCgameScoreReportRequest() *AlibabaCgameScoreReportAPIRequest
NewAlibabaCgameScoreReportRequest 初始化AlibabaCgameScoreReportAPIRequest对象
func (AlibabaCgameScoreReportAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r AlibabaCgameScoreReportAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AlibabaCgameScoreReportAPIRequest) GetApiParams ¶ added in v1.2.0
func (r AlibabaCgameScoreReportAPIRequest) GetApiParams() url.Values
GetApiParams IRequest interface 方法, 获取API参数
func (AlibabaCgameScoreReportAPIRequest) GetReportData ¶ added in v1.2.0
func (r AlibabaCgameScoreReportAPIRequest) GetReportData() *CpCallbackReportDto
GetReportData ReportData Getter
func (*AlibabaCgameScoreReportAPIRequest) SetReportData ¶ added in v1.2.0
func (r *AlibabaCgameScoreReportAPIRequest) SetReportData(_reportData *CpCallbackReportDto) error
SetReportData is ReportData Setter 通用战绩回传数据
type AlibabaCgameScoreReportAPIResponse ¶
type AlibabaCgameScoreReportAPIResponse struct { model.CommonResponse AlibabaCgameScoreReportAPIResponseModel }
AlibabaCgameScoreReportAPIResponse 云游戏战绩上传通用接口 API返回值 alibaba.cgame.score.report
阿里云游戏, CP游戏合作方通用游戏结果回传接口
type AlibabaCgameScoreReportAPIResponseModel ¶ added in v1.2.0
type AlibabaCgameScoreReportAPIResponseModel struct { XMLName xml.Name `xml:"alibaba_cgame_score_report_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 接口返回model Result *AlibabaCgameScoreReportResult `json:"result,omitempty" xml:"result,omitempty"` }
AlibabaCgameScoreReportAPIResponseModel is 云游戏战绩上传通用接口 成功返回结果
type AlibabaCgameScoreReportResult ¶
type AlibabaCgameScoreReportResult struct { // 结果码 Code string `json:"code,omitempty" xml:"code,omitempty"` // 返回消息 Message string `json:"message,omitempty" xml:"message,omitempty"` // 结果消息 Data string `json:"data,omitempty" xml:"data,omitempty"` }
AlibabaCgameScoreReportResult 结构体
type AlibabaCloudgameUserMixuseridCheckAPIRequest ¶ added in v1.2.0
type AlibabaCloudgameUserMixuseridCheckAPIRequest struct { model.Params // contains filtered or unexported fields }
AlibabaCloudgameUserMixuseridCheckAPIRequest 云游戏混淆用户ID校验 API请求 alibaba.cloudgame.user.mixuserid.check
验证混淆用户ID是否合法
func NewAlibabaCloudgameUserMixuseridCheckRequest ¶
func NewAlibabaCloudgameUserMixuseridCheckRequest() *AlibabaCloudgameUserMixuseridCheckAPIRequest
NewAlibabaCloudgameUserMixuseridCheckRequest 初始化AlibabaCloudgameUserMixuseridCheckAPIRequest对象
func (AlibabaCloudgameUserMixuseridCheckAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r AlibabaCloudgameUserMixuseridCheckAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AlibabaCloudgameUserMixuseridCheckAPIRequest) GetApiParams ¶ added in v1.2.0
func (r AlibabaCloudgameUserMixuseridCheckAPIRequest) GetApiParams() url.Values
GetApiParams IRequest interface 方法, 获取API参数
func (AlibabaCloudgameUserMixuseridCheckAPIRequest) GetMixUserId ¶ added in v1.2.0
func (r AlibabaCloudgameUserMixuseridCheckAPIRequest) GetMixUserId() string
GetMixUserId MixUserId Getter
func (*AlibabaCloudgameUserMixuseridCheckAPIRequest) SetMixUserId ¶ added in v1.2.0
func (r *AlibabaCloudgameUserMixuseridCheckAPIRequest) SetMixUserId(_mixUserId string) error
SetMixUserId is MixUserId Setter 云游戏混淆用户ID
type AlibabaCloudgameUserMixuseridCheckAPIResponse ¶
type AlibabaCloudgameUserMixuseridCheckAPIResponse struct { model.CommonResponse AlibabaCloudgameUserMixuseridCheckAPIResponseModel }
AlibabaCloudgameUserMixuseridCheckAPIResponse 云游戏混淆用户ID校验 API返回值 alibaba.cloudgame.user.mixuserid.check
验证混淆用户ID是否合法
type AlibabaCloudgameUserMixuseridCheckAPIResponseModel ¶ added in v1.2.0
type AlibabaCloudgameUserMixuseridCheckAPIResponseModel struct { XMLName xml.Name `xml:"alibaba_cloudgame_user_mixuserid_check_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 返回码 ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` // 返回码描述 ResultMessage string `json:"result_message,omitempty" xml:"result_message,omitempty"` // 是否有效 Data bool `json:"data,omitempty" xml:"data,omitempty"` }
AlibabaCloudgameUserMixuseridCheckAPIResponseModel is 云游戏混淆用户ID校验 成功返回结果
type CpCallbackReportDto ¶
type CpCallbackReportDto struct { // 云游戏业务类型, 不同业务类型对应bizData格式不同 BizType string `json:"biz_type,omitempty" xml:"biz_type,omitempty"` // 启动游戏票据,可以用来换取gameSessionId Ticket string `json:"ticket,omitempty" xml:"ticket,omitempty"` // 云游戏加密用户Id MixUserId string `json:"mix_user_id,omitempty" xml:"mix_user_id,omitempty"` // 约定的appKey GameAppKey string `json:"game_app_key,omitempty" xml:"game_app_key,omitempty"` // 全局唯一id, 用于接口幂等 Uuid string `json:"uuid,omitempty" xml:"uuid,omitempty"` // 回传业务数据, 针对biztype=0, 格式包含: 过关数, 剩余生命, 每关使用生命,每关耗时. CallbackBizData string `json:"callback_biz_data,omitempty" xml:"callback_biz_data,omitempty"` // 时间戳, 毫秒级别 ReportTimestamp int64 `json:"report_timestamp,omitempty" xml:"report_timestamp,omitempty"` }
CpCallbackReportDto 结构体
type ScoreReportDto ¶
type ScoreReportDto struct { // 游戏结果 Score string `json:"score,omitempty" xml:"score,omitempty"` // SDK传入的gameSessionId GameSessionId string `json:"game_session_id,omitempty" xml:"game_session_id,omitempty"` // SDK传入的云游戏混合用户ID MixUserId string `json:"mix_user_id,omitempty" xml:"mix_user_id,omitempty"` // 全局唯一uuid, 用于幂等校验 Uuid string `json:"uuid,omitempty" xml:"uuid,omitempty"` // 扩展信息JSON串 ExtInfo string `json:"ext_info,omitempty" xml:"ext_info,omitempty"` // 1 - 保存最佳战绩 2 - 强制更新战绩 OverwriteMethod int64 `json:"overwrite_method,omitempty" xml:"overwrite_method,omitempty"` // 上报时间戳 ReportTimestamp int64 `json:"report_timestamp,omitempty" xml:"report_timestamp,omitempty"` }
ScoreReportDto 结构体
type YoukuCgameScoreReportAPIRequest ¶ added in v1.2.0
type YoukuCgameScoreReportAPIRequest struct { model.Params // contains filtered or unexported fields }
YoukuCgameScoreReportAPIRequest 云游戏战绩上传 API请求 youku.cgame.score.report
云游戏战绩上传API
func NewYoukuCgameScoreReportRequest ¶
func NewYoukuCgameScoreReportRequest() *YoukuCgameScoreReportAPIRequest
NewYoukuCgameScoreReportRequest 初始化YoukuCgameScoreReportAPIRequest对象
func (YoukuCgameScoreReportAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r YoukuCgameScoreReportAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (YoukuCgameScoreReportAPIRequest) GetApiParams ¶ added in v1.2.0
func (r YoukuCgameScoreReportAPIRequest) GetApiParams() url.Values
GetApiParams IRequest interface 方法, 获取API参数
func (YoukuCgameScoreReportAPIRequest) GetScoreReportDto ¶ added in v1.2.0
func (r YoukuCgameScoreReportAPIRequest) GetScoreReportDto() *ScoreReportDto
GetScoreReportDto ScoreReportDto Getter
func (*YoukuCgameScoreReportAPIRequest) SetScoreReportDto ¶ added in v1.2.0
func (r *YoukuCgameScoreReportAPIRequest) SetScoreReportDto(_scoreReportDto *ScoreReportDto) error
SetScoreReportDto is ScoreReportDto Setter 战绩上传Dto
type YoukuCgameScoreReportAPIResponse ¶
type YoukuCgameScoreReportAPIResponse struct { model.CommonResponse YoukuCgameScoreReportAPIResponseModel }
YoukuCgameScoreReportAPIResponse 云游戏战绩上传 API返回值 youku.cgame.score.report
云游戏战绩上传API
type YoukuCgameScoreReportAPIResponseModel ¶ added in v1.2.0
type YoukuCgameScoreReportAPIResponseModel struct { XMLName xml.Name `xml:"youku_cgame_score_report_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 结果码 ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` // 返回消息体 Data string `json:"data,omitempty" xml:"data,omitempty"` // 返回消息 Message string `json:"message,omitempty" xml:"message,omitempty"` }
YoukuCgameScoreReportAPIResponseModel is 云游戏战绩上传 成功返回结果
Source Files ¶
- AlibabaCgameAvatarUserbodyQueryAPIRequest.go
- AlibabaCgameAvatarUserbodyQueryAPIResponse.go
- AlibabaCgameAvatarUserbodyQueryData.go
- AlibabaCgameAvatarUserbodyQueryResult.go
- AlibabaCgameScoreReportAPIRequest.go
- AlibabaCgameScoreReportAPIResponse.go
- AlibabaCgameScoreReportResult.go
- AlibabaCloudgameUserMixuseridCheckAPIRequest.go
- AlibabaCloudgameUserMixuseridCheckAPIResponse.go
- CpCallbackReportDto.go
- ScoreReportDto.go
- YoukuCgameScoreReportAPIRequest.go
- YoukuCgameScoreReportAPIResponse.go
- doc.go