cloudgame

package
v1.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 29, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlibabaCgameAvatarUserbodyQueryAPIResponse

type AlibabaCgameAvatarUserbodyQueryAPIResponse struct {
	model.CommonResponse
	AlibabaCgameAvatarUserbodyQueryResponse
}

用户Avatar body查询 API返回值 alibaba.cgame.avatar.userbody.query

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"`
	// 性别, 1-male, 2-female
	Gender int64 `json:"gender,omitempty" xml:"gender,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"`
}

AlibabaCgameAvatarUserbodyQueryData

type AlibabaCgameAvatarUserbodyQueryRequest

type AlibabaCgameAvatarUserbodyQueryRequest struct {
	model.Params
	// contains filtered or unexported fields
}

用户Avatar body查询 API请求 alibaba.cgame.avatar.userbody.query

Avatar用户body数据查询

func NewAlibabaCgameAvatarUserbodyQueryRequest

func NewAlibabaCgameAvatarUserbodyQueryRequest() *AlibabaCgameAvatarUserbodyQueryRequest

初始化AlibabaCgameAvatarUserbodyQueryRequest对象

func (AlibabaCgameAvatarUserbodyQueryRequest) GetApiMethodName

func (r AlibabaCgameAvatarUserbodyQueryRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlibabaCgameAvatarUserbodyQueryRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (AlibabaCgameAvatarUserbodyQueryRequest) GetMixUserId

MixUserId Getter

func (*AlibabaCgameAvatarUserbodyQueryRequest) SetMixUserId

func (r *AlibabaCgameAvatarUserbodyQueryRequest) SetMixUserId(mixUserId string) error

MixUserId Setter 查询数据所属用户的mixUserId

type AlibabaCgameAvatarUserbodyQueryResponse

type AlibabaCgameAvatarUserbodyQueryResponse 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"`
}

用户Avatar body查询 成功返回结果

type AlibabaCgameAvatarUserbodyQueryResult

type AlibabaCgameAvatarUserbodyQueryResult struct {
	// code
	Code string `json:"code,omitempty" xml:"code,omitempty"`
	// 响应数据
	Data *AlibabaCgameAvatarUserbodyQueryData `json:"data,omitempty" xml:"data,omitempty"`
	// 是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
	// message
	Message string `json:"message,omitempty" xml:"message,omitempty"`
}

AlibabaCgameAvatarUserbodyQueryResult

type AlibabaCgameScoreReportAPIResponse

type AlibabaCgameScoreReportAPIResponse struct {
	model.CommonResponse
	AlibabaCgameScoreReportResponse
}

云游戏战绩上传通用接口 API返回值 alibaba.cgame.score.report

阿里云游戏, CP游戏合作方通用游戏结果回传接口

type AlibabaCgameScoreReportRequest

type AlibabaCgameScoreReportRequest struct {
	model.Params
	// contains filtered or unexported fields
}

云游戏战绩上传通用接口 API请求 alibaba.cgame.score.report

阿里云游戏, CP游戏合作方通用游戏结果回传接口

func NewAlibabaCgameScoreReportRequest

func NewAlibabaCgameScoreReportRequest() *AlibabaCgameScoreReportRequest

初始化AlibabaCgameScoreReportRequest对象

func (AlibabaCgameScoreReportRequest) GetApiMethodName

func (r AlibabaCgameScoreReportRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlibabaCgameScoreReportRequest) GetApiParams

func (r AlibabaCgameScoreReportRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (AlibabaCgameScoreReportRequest) GetReportData

ReportData Getter

func (*AlibabaCgameScoreReportRequest) SetReportData

func (r *AlibabaCgameScoreReportRequest) SetReportData(reportData *CpCallbackReportDto) error

ReportData Setter 通用战绩回传数据

type AlibabaCgameScoreReportResponse

type AlibabaCgameScoreReportResponse 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"`
}

云游戏战绩上传通用接口 成功返回结果

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 AlibabaCloudgameUserMixuseridCheckAPIResponse

type AlibabaCloudgameUserMixuseridCheckAPIResponse struct {
	model.CommonResponse
	AlibabaCloudgameUserMixuseridCheckResponse
}

云游戏混淆用户ID校验 API返回值 alibaba.cloudgame.user.mixuserid.check

验证混淆用户ID是否合法

type AlibabaCloudgameUserMixuseridCheckRequest

type AlibabaCloudgameUserMixuseridCheckRequest struct {
	model.Params
	// contains filtered or unexported fields
}

云游戏混淆用户ID校验 API请求 alibaba.cloudgame.user.mixuserid.check

验证混淆用户ID是否合法

func NewAlibabaCloudgameUserMixuseridCheckRequest

func NewAlibabaCloudgameUserMixuseridCheckRequest() *AlibabaCloudgameUserMixuseridCheckRequest

初始化AlibabaCloudgameUserMixuseridCheckRequest对象

func (AlibabaCloudgameUserMixuseridCheckRequest) GetApiMethodName

IRequest interface 方法, 获取Api method

func (AlibabaCloudgameUserMixuseridCheckRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (AlibabaCloudgameUserMixuseridCheckRequest) GetMixUserId

MixUserId Getter

func (*AlibabaCloudgameUserMixuseridCheckRequest) SetMixUserId

func (r *AlibabaCloudgameUserMixuseridCheckRequest) SetMixUserId(mixUserId string) error

MixUserId Setter 云游戏混淆用户ID

type AlibabaCloudgameUserMixuseridCheckResponse

type AlibabaCloudgameUserMixuseridCheckResponse 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"`
	// 是否有效
	Data bool `json:"data,omitempty" xml:"data,omitempty"`
	// 返回码描述
	ResultMessage string `json:"result_message,omitempty" xml:"result_message,omitempty"`
}

云游戏混淆用户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"`
	// 时间戳, 毫秒级别
	ReportTimestamp int64 `json:"report_timestamp,omitempty" xml:"report_timestamp,omitempty"`
	// 回传业务数据, 针对biztype=0, 格式包含: 过关数, 剩余生命, 每关使用生命,每关耗时.
	CallbackBizData string `json:"callback_biz_data,omitempty" xml:"callback_biz_data,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"`
	// 1 - 保存最佳战绩     2 - 强制更新战绩
	OverwriteMethod int64 `json:"overwrite_method,omitempty" xml:"overwrite_method,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"`
	// 上报时间戳
	ReportTimestamp int64 `json:"report_timestamp,omitempty" xml:"report_timestamp,omitempty"`
}

ScoreReportDto

type YoukuCgameScoreReportAPIResponse

type YoukuCgameScoreReportAPIResponse struct {
	model.CommonResponse
	YoukuCgameScoreReportResponse
}

云游戏战绩上传 API返回值 youku.cgame.score.report

云游戏战绩上传API

type YoukuCgameScoreReportRequest

type YoukuCgameScoreReportRequest struct {
	model.Params
	// contains filtered or unexported fields
}

云游戏战绩上传 API请求 youku.cgame.score.report

云游戏战绩上传API

func NewYoukuCgameScoreReportRequest

func NewYoukuCgameScoreReportRequest() *YoukuCgameScoreReportRequest

初始化YoukuCgameScoreReportRequest对象

func (YoukuCgameScoreReportRequest) GetApiMethodName

func (r YoukuCgameScoreReportRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (YoukuCgameScoreReportRequest) GetApiParams

func (r YoukuCgameScoreReportRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (YoukuCgameScoreReportRequest) GetScoreReportDto

func (r YoukuCgameScoreReportRequest) GetScoreReportDto() *ScoreReportDto

ScoreReportDto Getter

func (*YoukuCgameScoreReportRequest) SetScoreReportDto

func (r *YoukuCgameScoreReportRequest) SetScoreReportDto(scoreReportDto *ScoreReportDto) error

ScoreReportDto Setter 战绩上传Dto

type YoukuCgameScoreReportResponse

type YoukuCgameScoreReportResponse 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"`
}

云游戏战绩上传 成功返回结果

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL