From ecd8acc7872e928a6fc3537c69edde68cc316d4f Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:15:44 +0800 Subject: [PATCH 001/255] feat: update --- client/model/adaptcreateandsubmitallforms.go | 21 ++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 client/model/adaptcreateandsubmitallforms.go diff --git a/client/model/adaptcreateandsubmitallforms.go b/client/model/adaptcreateandsubmitallforms.go new file mode 100644 index 00000000..cf4e308e --- /dev/null +++ b/client/model/adaptcreateandsubmitallforms.go @@ -0,0 +1,21 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type AdaptCreateAndSubmitAllForms struct { + GameId *int32 `json:"gameId,omitempty"` + GameName *string `json:"gameName,omitempty"` + GameVersionId *int32 `json:"gameVersionId,omitempty"` + GameVersion *string `json:"gameVersion,omitempty"` + ResolutionList *string `json:"resolutionList,omitempty"` + FrameRateList *string `json:"frameRateList,omitempty"` + PlatformType int32 `json:"platformType"` + SourcePlatform int32 `json:"sourcePlatform"` + Records string `json:"records"` + MixGameVersionId string `json:"mixGameVersionId"` + MixGameId string `json:"mixGameId"` +} From b0de6d24190b140e25a012e68b0006c16d8dd19a Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:15:45 +0800 Subject: [PATCH 002/255] feat: update --- client/model/adaptcreateandsubmitallresult.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 client/model/adaptcreateandsubmitallresult.go diff --git a/client/model/adaptcreateandsubmitallresult.go b/client/model/adaptcreateandsubmitallresult.go new file mode 100644 index 00000000..22798793 --- /dev/null +++ b/client/model/adaptcreateandsubmitallresult.go @@ -0,0 +1,15 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type AdaptCreateAndSubmitAllResult struct { + Success bool `json:"success,omitempty"` + // 适配请求ID + Model int64 `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From 37544e4b7cf35bb63ced827d04070f17a78be585 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:15:46 +0800 Subject: [PATCH 003/255] feat: update --- client/model/adaptqueryrequestbyidforms.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 client/model/adaptqueryrequestbyidforms.go diff --git a/client/model/adaptqueryrequestbyidforms.go b/client/model/adaptqueryrequestbyidforms.go new file mode 100644 index 00000000..b0fa36f5 --- /dev/null +++ b/client/model/adaptqueryrequestbyidforms.go @@ -0,0 +1,12 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type AdaptQueryRequestByIdForms struct { + // 适配请求id + Id int64 `json:"id"` +} From f9d1d619ce0e93a9767a17c47edd704a218a773e Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:15:47 +0800 Subject: [PATCH 004/255] feat: update --- client/model/adaptqueryrequestbyidresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/adaptqueryrequestbyidresult.go diff --git a/client/model/adaptqueryrequestbyidresult.go b/client/model/adaptqueryrequestbyidresult.go new file mode 100644 index 00000000..64c44406 --- /dev/null +++ b/client/model/adaptqueryrequestbyidresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type AdaptQueryRequestByIdResult struct { + Success bool `json:"success,omitempty"` + Model AdaptQueryRequestByIdResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From 79a12c9f1fcb8f0a88b1ceaee03f8f53cb46be3b Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:15:48 +0800 Subject: [PATCH 005/255] feat: update --- client/model/adaptqueryrequestbyidresultmodel.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 client/model/adaptqueryrequestbyidresultmodel.go diff --git a/client/model/adaptqueryrequestbyidresultmodel.go b/client/model/adaptqueryrequestbyidresultmodel.go new file mode 100644 index 00000000..98451c11 --- /dev/null +++ b/client/model/adaptqueryrequestbyidresultmodel.go @@ -0,0 +1,12 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type AdaptQueryRequestByIdResultModel struct { + // 状态0:待适配 1:适配中 2:适配完成 3:适配失败 + State int32 `json:"state,omitempty"` +} From a0eb7e0001e54a53adbcdf07a11432ef027487d5 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:15:49 +0800 Subject: [PATCH 006/255] feat: update --- client/model/batchstopgameforms.go | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 client/model/batchstopgameforms.go diff --git a/client/model/batchstopgameforms.go b/client/model/batchstopgameforms.go new file mode 100644 index 00000000..40cb76b5 --- /dev/null +++ b/client/model/batchstopgameforms.go @@ -0,0 +1,22 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type BatchStopGameForms struct { + // Paas平台部署的游戏Id + GameId string `json:"gameId"` + // Paas平台AK(应用的AK,非服务端AK) + AppKey string `json:"appKey"` + // 通过接口获取的token + Token string `json:"token"` + // 踢人的原因,会透传到sdk侧 + Reason *string `json:"reason,omitempty"` + // TrackInfo,回传消息 + TrackInfo *string `json:"trackInfo,omitempty"` + // 支持多标签传输 + Tags *string `json:"tags,omitempty"` +} From 1b2360c92d2075ace30fafb419634d9db890f606 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:15:52 +0800 Subject: [PATCH 007/255] feat: update --- client/model/batchstopgameresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/batchstopgameresult.go diff --git a/client/model/batchstopgameresult.go b/client/model/batchstopgameresult.go new file mode 100644 index 00000000..a3af19a1 --- /dev/null +++ b/client/model/batchstopgameresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type BatchStopGameResult struct { + Success bool `json:"success,omitempty"` + Model BatchStopGameResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From 7b1a03cfe0a23d3f73fe2e079fcf2c8a6da6860b Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:15:53 +0800 Subject: [PATCH 008/255] feat: update --- client/model/batchstopgameresultmodel.go | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 client/model/batchstopgameresultmodel.go diff --git a/client/model/batchstopgameresultmodel.go b/client/model/batchstopgameresultmodel.go new file mode 100644 index 00000000..88bdf4a7 --- /dev/null +++ b/client/model/batchstopgameresultmodel.go @@ -0,0 +1,24 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type BatchStopGameResultModel struct { + // Paas平台游戏ID + GameId string `json:"gameId,omitempty"` + // 批量停止的回传trackInfo + TrackInfo string `json:"trackInfo,omitempty"` + // 返回码 + Code string `json:"code,omitempty"` + // 请求链路唯一标示 + RequestId string `json:"requestId,omitempty"` + // 调度执行结果 + Success bool `json:"success,omitempty"` + // 返回信息 + Message string `json:"message,omitempty"` + // 游戏归属的项目Id + ProjectId string `json:"projectId,omitempty"` +} From a1d96f016cff76c2cc5ef69a4ed6366a0d65ca71 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:15:54 +0800 Subject: [PATCH 009/255] feat: update --- client/model/cancelgamehangforms.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/cancelgamehangforms.go diff --git a/client/model/cancelgamehangforms.go b/client/model/cancelgamehangforms.go new file mode 100644 index 00000000..99712138 --- /dev/null +++ b/client/model/cancelgamehangforms.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type CancelGameHangForms struct { + // 会话ID + GameSession string `json:"gameSession"` + // 项目应用AK + AppKey string `json:"appKey"` +} From 925aac62d87469da228c2fdf8921aced19ded6e4 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:15:55 +0800 Subject: [PATCH 010/255] feat: update --- client/model/cancelgamehangresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/cancelgamehangresult.go diff --git a/client/model/cancelgamehangresult.go b/client/model/cancelgamehangresult.go new file mode 100644 index 00000000..29159868 --- /dev/null +++ b/client/model/cancelgamehangresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type CancelGameHangResult struct { + Success bool `json:"success,omitempty"` + Model CancelGameHangResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From 1a4deb34e588132f44e6c56b2dbae1d2735d181a Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:15:56 +0800 Subject: [PATCH 011/255] feat: update --- client/model/cancelgamehangresultmodel.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 client/model/cancelgamehangresultmodel.go diff --git a/client/model/cancelgamehangresultmodel.go b/client/model/cancelgamehangresultmodel.go new file mode 100644 index 00000000..66f52852 --- /dev/null +++ b/client/model/cancelgamehangresultmodel.go @@ -0,0 +1,18 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type CancelGameHangResultModel struct { + // 错误Code + Code string `json:"code,omitempty"` + // 设置是否成功 + Success bool `json:"success,omitempty"` + // 错误Message + Message string `json:"message,omitempty"` + // 会话ID + GameSession string `json:"gameSession,omitempty"` +} From b79c1066e2fcd0fc1aa9b2eebd044d468ddad591 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:15:57 +0800 Subject: [PATCH 012/255] feat: update --- client/model/clientnotifyforms.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 client/model/clientnotifyforms.go diff --git a/client/model/clientnotifyforms.go b/client/model/clientnotifyforms.go new file mode 100644 index 00000000..9f37c75d --- /dev/null +++ b/client/model/clientnotifyforms.go @@ -0,0 +1,13 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ClientNotifyForms struct { + AppKey string `json:"appKey"` + GameSession string `json:"gameSession"` + Value string `json:"value"` +} From 3367e7e2e412cf3d67447628a18c909d2ae7dae6 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:15:59 +0800 Subject: [PATCH 013/255] feat: update --- client/model/clientnotifyresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/clientnotifyresult.go diff --git a/client/model/clientnotifyresult.go b/client/model/clientnotifyresult.go new file mode 100644 index 00000000..a0357e0d --- /dev/null +++ b/client/model/clientnotifyresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ClientNotifyResult struct { + Success bool `json:"success,omitempty"` + Model ClientNotifyResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From 806fbe02dda879793810a6d2816485efc66b3897 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:16:00 +0800 Subject: [PATCH 014/255] feat: update --- client/model/clientnotifyresultmodel.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/clientnotifyresultmodel.go diff --git a/client/model/clientnotifyresultmodel.go b/client/model/clientnotifyresultmodel.go new file mode 100644 index 00000000..910e04da --- /dev/null +++ b/client/model/clientnotifyresultmodel.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ClientNotifyResultModel struct { + Code string `json:"code,omitempty"` + Success bool `json:"success,omitempty"` + Message string `json:"message,omitempty"` + GameSession string `json:"gameSession,omitempty"` +} From ab21c5bc3d0ed6a1105f26587f19b6a309d270dd Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:16:01 +0800 Subject: [PATCH 015/255] feat: update --- .../model/consoleadminactivatedeploymentforms.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/consoleadminactivatedeploymentforms.go diff --git a/client/model/consoleadminactivatedeploymentforms.go b/client/model/consoleadminactivatedeploymentforms.go new file mode 100644 index 00000000..5f53e5c6 --- /dev/null +++ b/client/model/consoleadminactivatedeploymentforms.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminActivateDeploymentForms struct { + GameId string `json:"gameId"` + ProjectId string `json:"projectId"` + VersionId string `json:"versionId"` + MaxConcurrency *int32 `json:"maxConcurrency,omitempty"` +} From bac6bc6bf11666ffd1e95b63816cba352309018e Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:16:03 +0800 Subject: [PATCH 016/255] feat: update --- .../model/consoleadminactivatedeploymentresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/consoleadminactivatedeploymentresult.go diff --git a/client/model/consoleadminactivatedeploymentresult.go b/client/model/consoleadminactivatedeploymentresult.go new file mode 100644 index 00000000..a3a3fba1 --- /dev/null +++ b/client/model/consoleadminactivatedeploymentresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminActivateDeploymentResult struct { + Success bool `json:"success,omitempty"` + Model ConsoleAdminActivateDeploymentResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From e212721e526219b4c679994e1c3d013ee393c2eb Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:16:04 +0800 Subject: [PATCH 017/255] feat: update --- .../consoleadminactivatedeploymentresultmodel.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 client/model/consoleadminactivatedeploymentresultmodel.go diff --git a/client/model/consoleadminactivatedeploymentresultmodel.go b/client/model/consoleadminactivatedeploymentresultmodel.go new file mode 100644 index 00000000..e7224d6e --- /dev/null +++ b/client/model/consoleadminactivatedeploymentresultmodel.go @@ -0,0 +1,11 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminActivateDeploymentResultModel struct { + Activated bool `json:"activated,omitempty"` +} From 081f80544255d834d341e0452e99fc46976b1cf1 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:16:05 +0800 Subject: [PATCH 018/255] feat: update --- client/model/consoleadminadaptgameversionforms.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 client/model/consoleadminadaptgameversionforms.go diff --git a/client/model/consoleadminadaptgameversionforms.go b/client/model/consoleadminadaptgameversionforms.go new file mode 100644 index 00000000..f8366d2d --- /dev/null +++ b/client/model/consoleadminadaptgameversionforms.go @@ -0,0 +1,11 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminAdaptGameVersionForms struct { + VersionId string `json:"versionId"` +} From ba656c00e49b46fafd92af806c12971c989acae8 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:16:07 +0800 Subject: [PATCH 019/255] feat: update --- client/model/consoleadminadaptgameversionresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/consoleadminadaptgameversionresult.go diff --git a/client/model/consoleadminadaptgameversionresult.go b/client/model/consoleadminadaptgameversionresult.go new file mode 100644 index 00000000..1cf4de8e --- /dev/null +++ b/client/model/consoleadminadaptgameversionresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminAdaptGameVersionResult struct { + Success bool `json:"success,omitempty"` + Model ConsoleAdminAdaptGameVersionResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From 517e047289dedefe7fbb8e70681dc72eb68ff911 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:16:08 +0800 Subject: [PATCH 020/255] feat: update --- .../model/consoleadminadaptgameversionresultmodel.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 client/model/consoleadminadaptgameversionresultmodel.go diff --git a/client/model/consoleadminadaptgameversionresultmodel.go b/client/model/consoleadminadaptgameversionresultmodel.go new file mode 100644 index 00000000..6aa750f9 --- /dev/null +++ b/client/model/consoleadminadaptgameversionresultmodel.go @@ -0,0 +1,11 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminAdaptGameVersionResultModel struct { + TaskId string `json:"taskId,omitempty"` +} From 9c684009252148fe1c4b42f7867f04cf75ee1911 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:16:09 +0800 Subject: [PATCH 021/255] feat: update --- client/model/consoleadminaddgametoprojectforms.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 client/model/consoleadminaddgametoprojectforms.go diff --git a/client/model/consoleadminaddgametoprojectforms.go b/client/model/consoleadminaddgametoprojectforms.go new file mode 100644 index 00000000..63df9283 --- /dev/null +++ b/client/model/consoleadminaddgametoprojectforms.go @@ -0,0 +1,12 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminAddGameToProjectForms struct { + ProjectId string `json:"projectId"` + GameId string `json:"gameId"` +} From b2cc470239ae2ab1adc3566dab6ce27cf78ec34a Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:16:10 +0800 Subject: [PATCH 022/255] feat: update --- client/model/consoleadminaddgametoprojectresult.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 client/model/consoleadminaddgametoprojectresult.go diff --git a/client/model/consoleadminaddgametoprojectresult.go b/client/model/consoleadminaddgametoprojectresult.go new file mode 100644 index 00000000..85578c54 --- /dev/null +++ b/client/model/consoleadminaddgametoprojectresult.go @@ -0,0 +1,13 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminAddGameToProjectResult struct { + Success bool `json:"success,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From c0074175757955ad0b3d31cf04b372f30ee6b6e6 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:16:11 +0800 Subject: [PATCH 023/255] feat: update --- ...onsoleadminbatchupdatedispatchconfigforms.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 client/model/consoleadminbatchupdatedispatchconfigforms.go diff --git a/client/model/consoleadminbatchupdatedispatchconfigforms.go b/client/model/consoleadminbatchupdatedispatchconfigforms.go new file mode 100644 index 00000000..e7f1f46c --- /dev/null +++ b/client/model/consoleadminbatchupdatedispatchconfigforms.go @@ -0,0 +1,17 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminBatchUpdateDispatchConfigForms struct { + // 项目id(混淆) + MixProjectId string `json:"mixProjectId"` + // 实例id + InstanceId string `json:"instanceId"` + // 接入方唯一标识 + AppName string `json:"appName"` + ConfigList []ConsoleAdminBatchUpdateDispatchConfigFormsConfigList `json:"configList"` +} From 9fe95d865cda6377039053f58ace23c1d5e6f7e9 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:16:12 +0800 Subject: [PATCH 024/255] feat: update --- ...atchupdatedispatchconfigformsconfiglist.go | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 client/model/consoleadminbatchupdatedispatchconfigformsconfiglist.go diff --git a/client/model/consoleadminbatchupdatedispatchconfigformsconfiglist.go b/client/model/consoleadminbatchupdatedispatchconfigformsconfiglist.go new file mode 100644 index 00000000..42c03815 --- /dev/null +++ b/client/model/consoleadminbatchupdatedispatchconfigformsconfiglist.go @@ -0,0 +1,22 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminBatchUpdateDispatchConfigFormsConfigList struct { + // 编码游戏id + MixGameId string `json:"mixGameId"` + // 独占并发数 + ExclusiveConcurrency int32 `json:"exclusiveConcurrency,omitempty"` + // 最大并发百分比-Double类型[0.0,1.0] + MaxConcurrencyPercent string `json:"maxConcurrencyPercent"` + // 独占并发百分比--Double类型[0.0,1.0] + ExclusiveConcurrencyPercent string `json:"exclusiveConcurrencyPercent"` + // 调度等级 + Priority int32 `json:"priority"` + // 最大并发数 + MaxConcurrency int32 `json:"maxConcurrency,omitempty"` +} From d9c05aef2a404d709928877acec7228c349d6f25 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:16:13 +0800 Subject: [PATCH 025/255] feat: update --- .../consoleadminbatchupdatedispatchconfigresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/consoleadminbatchupdatedispatchconfigresult.go diff --git a/client/model/consoleadminbatchupdatedispatchconfigresult.go b/client/model/consoleadminbatchupdatedispatchconfigresult.go new file mode 100644 index 00000000..56bec409 --- /dev/null +++ b/client/model/consoleadminbatchupdatedispatchconfigresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminBatchUpdateDispatchConfigResult struct { + Success bool `json:"success,omitempty"` + Model bool `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From fc7bb16449e041411151e5767c5754e37e70f6e4 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:16:14 +0800 Subject: [PATCH 026/255] feat: update --- client/model/consoleadmincreategameforms.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 client/model/consoleadmincreategameforms.go diff --git a/client/model/consoleadmincreategameforms.go b/client/model/consoleadmincreategameforms.go new file mode 100644 index 00000000..989696d2 --- /dev/null +++ b/client/model/consoleadmincreategameforms.go @@ -0,0 +1,13 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminCreateGameForms struct { + GameName string `json:"gameName"` + PlatformType int64 `json:"platformType"` + OsType *int32 `json:"osType,omitempty"` +} From 0d1c3f7c326a518d6877b2251cb289f6cb2aa98f Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:16:15 +0800 Subject: [PATCH 027/255] feat: update --- client/model/consoleadmincreategameresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/consoleadmincreategameresult.go diff --git a/client/model/consoleadmincreategameresult.go b/client/model/consoleadmincreategameresult.go new file mode 100644 index 00000000..9e40070a --- /dev/null +++ b/client/model/consoleadmincreategameresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminCreateGameResult struct { + Success bool `json:"success,omitempty"` + Model ConsoleAdminCreateGameResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From 40b8237bf21438557df42530ef0e9ebe297eb899 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:16:17 +0800 Subject: [PATCH 028/255] feat: update --- client/model/consoleadmincreategameresultmodel.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 client/model/consoleadmincreategameresultmodel.go diff --git a/client/model/consoleadmincreategameresultmodel.go b/client/model/consoleadmincreategameresultmodel.go new file mode 100644 index 00000000..1f1d43d1 --- /dev/null +++ b/client/model/consoleadmincreategameresultmodel.go @@ -0,0 +1,11 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminCreateGameResultModel struct { + GameId string `json:"gameId,omitempty"` +} From af0c3c3ef4ade18be743fc553cdaf27eff740e64 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:16:18 +0800 Subject: [PATCH 029/255] feat: update --- client/model/consoleadmincreateorderforms.go | 25 ++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 client/model/consoleadmincreateorderforms.go diff --git a/client/model/consoleadmincreateorderforms.go b/client/model/consoleadmincreateorderforms.go new file mode 100644 index 00000000..8a55c921 --- /dev/null +++ b/client/model/consoleadmincreateorderforms.go @@ -0,0 +1,25 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminCreateOrderForms struct { + // 类目编码 + CategoryCode string `json:"categoryCode"` + // 商品编码 + CommodityCode string `json:"commodityCode"` + // 实例ID + InstanceId *string `json:"instanceId,omitempty"` + // 主计费项编码 + PrimaryChargeItemCode string `json:"primaryChargeItemCode"` + AttributeRequestList []ConsoleAdminCreateOrderFormsAttributeRequestList `json:"attributeRequestList"` + // 订单类型 + OrderType string `json:"orderType"` + // 是否开启自动续费 + AutoRenew *bool `json:"autoRenew,omitempty"` + // 下单扩展信息 + CreateOrderExtParams *string `json:"createOrderExtParams,omitempty"` +} From 6b46b812ad643e36d8b8fe1720da216acffc7e92 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:16:19 +0800 Subject: [PATCH 030/255] feat: update --- ...dmincreateorderformsattributerequestlist.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 client/model/consoleadmincreateorderformsattributerequestlist.go diff --git a/client/model/consoleadmincreateorderformsattributerequestlist.go b/client/model/consoleadmincreateorderformsattributerequestlist.go new file mode 100644 index 00000000..b0836e91 --- /dev/null +++ b/client/model/consoleadmincreateorderformsattributerequestlist.go @@ -0,0 +1,18 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminCreateOrderFormsAttributeRequestList struct { + // 属性编码 + AttributeCode string `json:"attributeCode"` + // 属性值(区间型专用) + AttributeValue int32 `json:"attributeValue,omitempty"` + // 属性值编码(枚举型,时长型 专用) + AttributeValueCode int64 `json:"attributeValueCode,omitempty"` + // 时长单位 + TimeUnit string `json:"timeUnit,omitempty"` +} From c0b383a7b857ff6c25a5a6c4a531ea3ff2c19c3a Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:16:20 +0800 Subject: [PATCH 031/255] feat: update --- client/model/consoleadmincreateorderresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/consoleadmincreateorderresult.go diff --git a/client/model/consoleadmincreateorderresult.go b/client/model/consoleadmincreateorderresult.go new file mode 100644 index 00000000..9975f138 --- /dev/null +++ b/client/model/consoleadmincreateorderresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminCreateOrderResult struct { + Success bool `json:"success,omitempty"` + Model ConsoleAdminCreateOrderResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From 2d6ff09b128503a0eaf4e7224742396dff377251 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:16:21 +0800 Subject: [PATCH 032/255] feat: update --- client/model/consoleadmincreateorderresultmodel.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/consoleadmincreateorderresultmodel.go diff --git a/client/model/consoleadmincreateorderresultmodel.go b/client/model/consoleadmincreateorderresultmodel.go new file mode 100644 index 00000000..d29e05d5 --- /dev/null +++ b/client/model/consoleadmincreateorderresultmodel.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminCreateOrderResultModel struct { + // 实例ID + InstanceId string `json:"instanceId,omitempty"` + // 订单ID + OrderId string `json:"orderId,omitempty"` +} From 3ed4497c7de1b4d31d09d6070b4d2d704c0c933d Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:16:23 +0800 Subject: [PATCH 033/255] feat: update --- client/model/consoleadmincreateprojectforms.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 client/model/consoleadmincreateprojectforms.go diff --git a/client/model/consoleadmincreateprojectforms.go b/client/model/consoleadmincreateprojectforms.go new file mode 100644 index 00000000..b146faf5 --- /dev/null +++ b/client/model/consoleadmincreateprojectforms.go @@ -0,0 +1,11 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminCreateProjectForms struct { + ProjectName string `json:"projectName"` +} From b6f8b0a29f3a250ed13b56ab63474fb8481ef502 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:16:24 +0800 Subject: [PATCH 034/255] feat: update --- client/model/consoleadmincreateprojectresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/consoleadmincreateprojectresult.go diff --git a/client/model/consoleadmincreateprojectresult.go b/client/model/consoleadmincreateprojectresult.go new file mode 100644 index 00000000..a89d625e --- /dev/null +++ b/client/model/consoleadmincreateprojectresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminCreateProjectResult struct { + Success bool `json:"success,omitempty"` + Model ConsoleAdminCreateProjectResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From 120c3b52c8357d0ec3e591a86912613790b99a01 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:16:25 +0800 Subject: [PATCH 035/255] feat: update --- client/model/consoleadmincreateprojectresultmodel.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 client/model/consoleadmincreateprojectresultmodel.go diff --git a/client/model/consoleadmincreateprojectresultmodel.go b/client/model/consoleadmincreateprojectresultmodel.go new file mode 100644 index 00000000..f7d59ddd --- /dev/null +++ b/client/model/consoleadmincreateprojectresultmodel.go @@ -0,0 +1,11 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminCreateProjectResultModel struct { + ProjectId string `json:"projectId,omitempty"` +} From 359ddea6b6645bc8e34c877973c68004ac5738ab Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:16:26 +0800 Subject: [PATCH 036/255] feat: update --- client/model/consoleadmindeletegameforms.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 client/model/consoleadmindeletegameforms.go diff --git a/client/model/consoleadmindeletegameforms.go b/client/model/consoleadmindeletegameforms.go new file mode 100644 index 00000000..aa67c8c2 --- /dev/null +++ b/client/model/consoleadmindeletegameforms.go @@ -0,0 +1,11 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminDeleteGameForms struct { + GameId string `json:"gameId"` +} From 1c505ba304909b677626ff08311a5ab9148b4c9e Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:16:27 +0800 Subject: [PATCH 037/255] feat: update --- client/model/consoleadmindeletegameresult.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 client/model/consoleadmindeletegameresult.go diff --git a/client/model/consoleadmindeletegameresult.go b/client/model/consoleadmindeletegameresult.go new file mode 100644 index 00000000..d0b42526 --- /dev/null +++ b/client/model/consoleadmindeletegameresult.go @@ -0,0 +1,13 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminDeleteGameResult struct { + Success bool `json:"success,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From 966aca89db557cb8a99ab6b166c7642d259fe324 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:16:28 +0800 Subject: [PATCH 038/255] feat: update --- client/model/consoleadmindeletegameversionforms.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 client/model/consoleadmindeletegameversionforms.go diff --git a/client/model/consoleadmindeletegameversionforms.go b/client/model/consoleadmindeletegameversionforms.go new file mode 100644 index 00000000..7d5c2c60 --- /dev/null +++ b/client/model/consoleadmindeletegameversionforms.go @@ -0,0 +1,11 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminDeleteGameVersionForms struct { + VersionId string `json:"versionId"` +} From 727ca2de7b197abd94183f9c0f1287eeba7755b5 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:16:30 +0800 Subject: [PATCH 039/255] feat: update --- client/model/consoleadmindeletegameversionresult.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 client/model/consoleadmindeletegameversionresult.go diff --git a/client/model/consoleadmindeletegameversionresult.go b/client/model/consoleadmindeletegameversionresult.go new file mode 100644 index 00000000..bbdde034 --- /dev/null +++ b/client/model/consoleadmindeletegameversionresult.go @@ -0,0 +1,13 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminDeleteGameVersionResult struct { + Success bool `json:"success,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From 8ebbaa0470433890329ecbd22f75681fc13a3d6a Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:16:31 +0800 Subject: [PATCH 040/255] feat: update --- client/model/consoleadmindeleteprojectforms.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 client/model/consoleadmindeleteprojectforms.go diff --git a/client/model/consoleadmindeleteprojectforms.go b/client/model/consoleadmindeleteprojectforms.go new file mode 100644 index 00000000..a95d4642 --- /dev/null +++ b/client/model/consoleadmindeleteprojectforms.go @@ -0,0 +1,11 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminDeleteProjectForms struct { + ProjectId string `json:"projectId"` +} From 9375f50ee3b3f67ef973a5211c68bb0869d4ed23 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:16:32 +0800 Subject: [PATCH 041/255] feat: update --- client/model/consoleadmindeleteprojectresult.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 client/model/consoleadmindeleteprojectresult.go diff --git a/client/model/consoleadmindeleteprojectresult.go b/client/model/consoleadmindeleteprojectresult.go new file mode 100644 index 00000000..94c91d4e --- /dev/null +++ b/client/model/consoleadmindeleteprojectresult.go @@ -0,0 +1,13 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminDeleteProjectResult struct { + Success bool `json:"success,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From a4b748c95c06b1cc363b572d391c7546e029b89b Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:16:33 +0800 Subject: [PATCH 042/255] feat: update --- .../model/consoleadmingetbillflowinfoforms.go | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 client/model/consoleadmingetbillflowinfoforms.go diff --git a/client/model/consoleadmingetbillflowinfoforms.go b/client/model/consoleadmingetbillflowinfoforms.go new file mode 100644 index 00000000..c8075be5 --- /dev/null +++ b/client/model/consoleadmingetbillflowinfoforms.go @@ -0,0 +1,20 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminGetBillFlowInfoForms struct { + AccountingPeriodFrom string `json:"accountingPeriodFrom"` + AccountingPeriodTo string `json:"accountingPeriodTo"` + CommodityCode *string `json:"commodityCode,omitempty"` + TenantId *string `json:"tenantId,omitempty"` + OrderId *string `json:"orderId,omitempty"` + Status *string `json:"status,omitempty"` + ConsumeType *string `json:"consumeType,omitempty"` + BillType *string `json:"billType,omitempty"` + PageNumber *int32 `json:"pageNumber,omitempty"` + PageSize *int32 `json:"pageSize,omitempty"` +} From 8d97b6c63d989eb3dff008bf0e2de215cee07533 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:16:34 +0800 Subject: [PATCH 043/255] feat: update --- client/model/consoleadmingetbillflowinforesult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/consoleadmingetbillflowinforesult.go diff --git a/client/model/consoleadmingetbillflowinforesult.go b/client/model/consoleadmingetbillflowinforesult.go new file mode 100644 index 00000000..ac4b1953 --- /dev/null +++ b/client/model/consoleadmingetbillflowinforesult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminGetBillFlowInfoResult struct { + Success bool `json:"success,omitempty"` + Model ConsoleAdminGetBillFlowInfoResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From a34666c542f32fa55da66a6e9d30b6b02d6aa37b Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:16:35 +0800 Subject: [PATCH 044/255] feat: update --- .../consoleadmingetbillflowinforesultmodel.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/consoleadmingetbillflowinforesultmodel.go diff --git a/client/model/consoleadmingetbillflowinforesultmodel.go b/client/model/consoleadmingetbillflowinforesultmodel.go new file mode 100644 index 00000000..098365c5 --- /dev/null +++ b/client/model/consoleadmingetbillflowinforesultmodel.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminGetBillFlowInfoResultModel struct { + PageNumber int32 `json:"pageNumber,omitempty"` + Pagesize int32 `json:"pagesize,omitempty"` + TotalCount int32 `json:"totalCount,omitempty"` + Items []ConsoleAdminGetBillFlowInfoResultModelItems `json:"items,omitempty"` +} From edac9b067a24bfef92cef0df24597966dca5a6f6 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:16:36 +0800 Subject: [PATCH 045/255] feat: update --- ...oleadmingetbillflowinforesultmodelitems.go | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 client/model/consoleadmingetbillflowinforesultmodelitems.go diff --git a/client/model/consoleadmingetbillflowinforesultmodelitems.go b/client/model/consoleadmingetbillflowinforesultmodelitems.go new file mode 100644 index 00000000..63207823 --- /dev/null +++ b/client/model/consoleadmingetbillflowinforesultmodelitems.go @@ -0,0 +1,26 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminGetBillFlowInfoResultModelItems struct { + ConsumePeriodStartTime int64 `json:"consumePeriodStartTime,omitempty"` + TotalUnclearAmount string `json:"totalUnclearAmount,omitempty"` + Amount int64 `json:"amount,omitempty"` + OrderId string `json:"orderId,omitempty"` + BillType string `json:"billType,omitempty"` + DiscountAmount string `json:"discountAmount,omitempty"` + ActualTotalPayAmount int64 `json:"actualTotalPayAmount,omitempty"` + RefundOrderId string `json:"refundOrderId,omitempty"` + ConsumePeriodEndTime int64 `json:"consumePeriodEndTime,omitempty"` + PayAmount int64 `json:"payAmount,omitempty"` + TenantName string `json:"tenantName,omitempty"` + SettlementStatus string `json:"settlementStatus,omitempty"` + VoucherPayAmount string `json:"voucherPayAmount,omitempty"` + AccountingPeriod string `json:"accountingPeriod,omitempty"` + ConsumeType string `json:"consumeType,omitempty"` + CommodityName string `json:"commodityName,omitempty"` +} From 113b935d029f4c1db21b464fb16a84acf46fad7e Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:16:38 +0800 Subject: [PATCH 046/255] feat: update --- ...consoleadmingetgameinstancecontainerratioforms.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 client/model/consoleadmingetgameinstancecontainerratioforms.go diff --git a/client/model/consoleadmingetgameinstancecontainerratioforms.go b/client/model/consoleadmingetgameinstancecontainerratioforms.go new file mode 100644 index 00000000..6d190076 --- /dev/null +++ b/client/model/consoleadmingetgameinstancecontainerratioforms.go @@ -0,0 +1,12 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminGetGameInstanceContainerRatioForms struct { + CommodityInstanceId string `json:"commodityInstanceId"` + Games []ConsoleAdminGetGameInstanceContainerRatioFormsGames `json:"games"` +} From a28af803b27569853b3b0df71c899e3f7b5c28e6 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:16:39 +0800 Subject: [PATCH 047/255] feat: update --- ...leadmingetgameinstancecontainerratioformsgames.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 client/model/consoleadmingetgameinstancecontainerratioformsgames.go diff --git a/client/model/consoleadmingetgameinstancecontainerratioformsgames.go b/client/model/consoleadmingetgameinstancecontainerratioformsgames.go new file mode 100644 index 00000000..195f6f27 --- /dev/null +++ b/client/model/consoleadmingetgameinstancecontainerratioformsgames.go @@ -0,0 +1,12 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminGetGameInstanceContainerRatioFormsGames struct { + MixId string `json:"mixId"` + MixVersionId string `json:"mixVersionId"` +} From f4abda00ba4ed55c37f28d7dfeb31dc83a8bcf0f Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:16:40 +0800 Subject: [PATCH 048/255] feat: update --- ...soleadmingetgameinstancecontainerratioresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/consoleadmingetgameinstancecontainerratioresult.go diff --git a/client/model/consoleadmingetgameinstancecontainerratioresult.go b/client/model/consoleadmingetgameinstancecontainerratioresult.go new file mode 100644 index 00000000..cbd63f6c --- /dev/null +++ b/client/model/consoleadmingetgameinstancecontainerratioresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminGetGameInstanceContainerRatioResult struct { + Success bool `json:"success,omitempty"` + Model []ConsoleAdminGetGameInstanceContainerRatioResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From 4f26c49eff8c99246a8dfe3b032dca37b773899e Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:16:41 +0800 Subject: [PATCH 049/255] feat: update --- ...admingetgameinstancecontainerratioresultmodel.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 client/model/consoleadmingetgameinstancecontainerratioresultmodel.go diff --git a/client/model/consoleadmingetgameinstancecontainerratioresultmodel.go b/client/model/consoleadmingetgameinstancecontainerratioresultmodel.go new file mode 100644 index 00000000..4dd8f2fc --- /dev/null +++ b/client/model/consoleadmingetgameinstancecontainerratioresultmodel.go @@ -0,0 +1,13 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminGetGameInstanceContainerRatioResultModel struct { + MixId string `json:"mixId,omitempty"` + MixVersionId string `json:"mixVersionId,omitempty"` + ContainerRatio string `json:"containerRatio,omitempty"` +} From 85c84dfc4b2dba6f01721ea28ea3ca85a774bb1b Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:16:42 +0800 Subject: [PATCH 050/255] feat: update --- .../consoleadmingetgamerecommendedinstanceforms.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 client/model/consoleadmingetgamerecommendedinstanceforms.go diff --git a/client/model/consoleadmingetgamerecommendedinstanceforms.go b/client/model/consoleadmingetgamerecommendedinstanceforms.go new file mode 100644 index 00000000..86eac6dc --- /dev/null +++ b/client/model/consoleadmingetgamerecommendedinstanceforms.go @@ -0,0 +1,12 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminGetGameRecommendedInstanceForms struct { + Game ConsoleAdminGetGameRecommendedInstanceFormsGame `json:"game"` + CommodityInstanceIds []string `json:"commodityInstanceIds"` +} From 02a780810499838069f35b9ddb3620dd06ab3dd1 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:16:43 +0800 Subject: [PATCH 051/255] feat: update --- ...onsoleadmingetgamerecommendedinstanceformsgame.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 client/model/consoleadmingetgamerecommendedinstanceformsgame.go diff --git a/client/model/consoleadmingetgamerecommendedinstanceformsgame.go b/client/model/consoleadmingetgamerecommendedinstanceformsgame.go new file mode 100644 index 00000000..a64cd68a --- /dev/null +++ b/client/model/consoleadmingetgamerecommendedinstanceformsgame.go @@ -0,0 +1,12 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminGetGameRecommendedInstanceFormsGame struct { + MixId string `json:"mixId"` + MixVersionId string `json:"mixVersionId"` +} From 9c9211a48e3d1e7392637e7ec9466b768c461816 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:16:45 +0800 Subject: [PATCH 052/255] feat: update --- ...consoleadmingetgamerecommendedinstanceresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/consoleadmingetgamerecommendedinstanceresult.go diff --git a/client/model/consoleadmingetgamerecommendedinstanceresult.go b/client/model/consoleadmingetgamerecommendedinstanceresult.go new file mode 100644 index 00000000..26c61c44 --- /dev/null +++ b/client/model/consoleadmingetgamerecommendedinstanceresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminGetGameRecommendedInstanceResult struct { + Success bool `json:"success,omitempty"` + Model ConsoleAdminGetGameRecommendedInstanceResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From 4e43a6d6949a9e790aee284912eb9f9c0dde20a1 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:16:46 +0800 Subject: [PATCH 053/255] feat: update --- ...nsoleadmingetgamerecommendedinstanceresultmodel.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 client/model/consoleadmingetgamerecommendedinstanceresultmodel.go diff --git a/client/model/consoleadmingetgamerecommendedinstanceresultmodel.go b/client/model/consoleadmingetgamerecommendedinstanceresultmodel.go new file mode 100644 index 00000000..dcd45156 --- /dev/null +++ b/client/model/consoleadmingetgamerecommendedinstanceresultmodel.go @@ -0,0 +1,11 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminGetGameRecommendedInstanceResultModel struct { + CommodityInstanceId string `json:"commodityInstanceId,omitempty"` +} From 94b8809792ebc1a76a53e4ca1ce6a27b4c0b6e44 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:16:47 +0800 Subject: [PATCH 054/255] feat: update --- client/model/consoleadmingetgameversionforms.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 client/model/consoleadmingetgameversionforms.go diff --git a/client/model/consoleadmingetgameversionforms.go b/client/model/consoleadmingetgameversionforms.go new file mode 100644 index 00000000..400e9818 --- /dev/null +++ b/client/model/consoleadmingetgameversionforms.go @@ -0,0 +1,11 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminGetGameVersionForms struct { + VersionId string `json:"versionId"` +} From 1536f8ed8bfb5a2497fbdc890b2fcfb636d35dfb Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:16:48 +0800 Subject: [PATCH 055/255] feat: update --- .../model/consoleadmingetgameversionprogressforms.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 client/model/consoleadmingetgameversionprogressforms.go diff --git a/client/model/consoleadmingetgameversionprogressforms.go b/client/model/consoleadmingetgameversionprogressforms.go new file mode 100644 index 00000000..582b024e --- /dev/null +++ b/client/model/consoleadmingetgameversionprogressforms.go @@ -0,0 +1,11 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminGetGameVersionProgressForms struct { + TaskId string `json:"taskId"` +} From 78800a13f6525a9ba1b267adc37c3cb4715db668 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:16:49 +0800 Subject: [PATCH 056/255] feat: update --- .../consoleadmingetgameversionprogressresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/consoleadmingetgameversionprogressresult.go diff --git a/client/model/consoleadmingetgameversionprogressresult.go b/client/model/consoleadmingetgameversionprogressresult.go new file mode 100644 index 00000000..b099ba24 --- /dev/null +++ b/client/model/consoleadmingetgameversionprogressresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminGetGameVersionProgressResult struct { + Success bool `json:"success,omitempty"` + Model ConsoleAdminGetGameVersionProgressResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From ca584af69c2efdcc6dbc55c142ca991d4a7d5e15 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:16:50 +0800 Subject: [PATCH 057/255] feat: update --- ...nsoleadmingetgameversionprogressresultmodel.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 client/model/consoleadmingetgameversionprogressresultmodel.go diff --git a/client/model/consoleadmingetgameversionprogressresultmodel.go b/client/model/consoleadmingetgameversionprogressresultmodel.go new file mode 100644 index 00000000..26fddebd --- /dev/null +++ b/client/model/consoleadmingetgameversionprogressresultmodel.go @@ -0,0 +1,15 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminGetGameVersionProgressResultModel struct { + // 提供不固定的额外信息 + Extra map[string]string `json:"extra,omitempty"` + Description string `json:"description,omitempty"` + Event string `json:"event,omitempty"` + Status string `json:"status,omitempty"` +} From 008fce8e472127896b2d41d96ce580db944ed220 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:16:51 +0800 Subject: [PATCH 058/255] feat: update --- client/model/consoleadmingetgameversionresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/consoleadmingetgameversionresult.go diff --git a/client/model/consoleadmingetgameversionresult.go b/client/model/consoleadmingetgameversionresult.go new file mode 100644 index 00000000..d013c292 --- /dev/null +++ b/client/model/consoleadmingetgameversionresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminGetGameVersionResult struct { + Success bool `json:"success,omitempty"` + Model ConsoleAdminGetGameVersionResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From 5bbbed4d6125852bfefcbb78b58f4904952a499a Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:16:53 +0800 Subject: [PATCH 059/255] feat: update --- .../model/consoleadmingetgameversionresultmodel.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 client/model/consoleadmingetgameversionresultmodel.go diff --git a/client/model/consoleadmingetgameversionresultmodel.go b/client/model/consoleadmingetgameversionresultmodel.go new file mode 100644 index 00000000..759bc2d3 --- /dev/null +++ b/client/model/consoleadmingetgameversionresultmodel.go @@ -0,0 +1,12 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminGetGameVersionResultModel struct { + VersionId string `json:"versionId,omitempty"` + VersionName string `json:"versionName,omitempty"` +} From 6ed2911b7ba983389885b4619be8a71aec1291b2 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:16:54 +0800 Subject: [PATCH 060/255] feat: update --- client/model/consoleadmingetorderforms.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 client/model/consoleadmingetorderforms.go diff --git a/client/model/consoleadmingetorderforms.go b/client/model/consoleadmingetorderforms.go new file mode 100644 index 00000000..4fea7d89 --- /dev/null +++ b/client/model/consoleadmingetorderforms.go @@ -0,0 +1,12 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminGetOrderForms struct { + // 订单号 + OrderId string `json:"orderId"` +} From 3ef577c470ef8f6dcab328357050b1d81a040bfa Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:16:55 +0800 Subject: [PATCH 061/255] feat: update --- client/model/consoleadmingetorderresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/consoleadmingetorderresult.go diff --git a/client/model/consoleadmingetorderresult.go b/client/model/consoleadmingetorderresult.go new file mode 100644 index 00000000..c15cc107 --- /dev/null +++ b/client/model/consoleadmingetorderresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminGetOrderResult struct { + Success bool `json:"success,omitempty"` + Model ConsoleAdminGetOrderResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From 76c7ee4e1ef2ba4c29aa457b6efcb6f8b9fe844a Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:16:56 +0800 Subject: [PATCH 062/255] feat: update --- .../model/consoleadmingetorderresultmodel.go | 90 +++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 client/model/consoleadmingetorderresultmodel.go diff --git a/client/model/consoleadmingetorderresultmodel.go b/client/model/consoleadmingetorderresultmodel.go new file mode 100644 index 00000000..ef2f9ab7 --- /dev/null +++ b/client/model/consoleadmingetorderresultmodel.go @@ -0,0 +1,90 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminGetOrderResultModel struct { + // 订单类型 + OrderType string `json:"orderType,omitempty"` + // 订单号 + OrderId string `json:"orderId,omitempty"` + // 配置详情 + AttributeList []ConsoleAdminGetOrderResultModelAttributeList `json:"attributeList,omitempty"` + // 付费方式 + ChargeType string `json:"chargeType,omitempty"` + // 优惠金额(单位:分) + DiscountAmount int64 `json:"discountAmount,omitempty"` + // 信控支付金额(单位:分) + CreditPayAmount int64 `json:"creditPayAmount,omitempty"` + // 降配退款金额 + DowngradeRefundAmount int64 `json:"downgradeRefundAmount,omitempty"` + // 降配信控应退款金额 + DowngradeCreditRefundAmount int64 `json:"downgradeCreditRefundAmount,omitempty"` + // 优惠详细信息 + DiscountDetail string `json:"discountDetail,omitempty"` + // 优惠名称 + PromotionName string `json:"promotionName,omitempty"` + // 实例ID + InstanceId string `json:"instanceId,omitempty"` + // 应付金额(单位:分) + PayAmount int64 `json:"payAmount,omitempty"` + // 租户名称 + TenantName string `json:"tenantName,omitempty"` + // 商品编码 + CommodityCode string `json:"commodityCode,omitempty"` + // 是否自动续费 + AutoRenew bool `json:"autoRenew,omitempty"` + // 币种 + Currency string `json:"currency,omitempty"` + // 开始时间 + StartTime int64 `json:"startTime,omitempty"` + // 降配现金应退款金额 + DowngradeBalanceRefundAmount int64 `json:"downgradeBalanceRefundAmount,omitempty"` + // 主计费项价格类型 + PrimaryPriceType string `json:"primaryPriceType,omitempty"` + // 订单完成时间 + FinishTime int64 `json:"finishTime,omitempty"` + // 订单总金额(单位:分) + Amount int64 `json:"amount,omitempty"` + // 数量 + Quantity int32 `json:"quantity,omitempty"` + // 发货完成时间 + DeliveryEndTime int64 `json:"deliveryEndTime,omitempty"` + // 售中退款时间 + RefundTime int64 `json:"refundTime,omitempty"` + // 购买时长单位 + BuyDurationUnit string `json:"buyDurationUnit,omitempty"` + // 主计费项编码 + PrimaryChargeItemCode string `json:"primaryChargeItemCode,omitempty"` + // 支付用户ID + PayUserId string `json:"payUserId,omitempty"` + // 类目编码 + CategoryCode string `json:"categoryCode,omitempty"` + // 购买时长 + BuyDuration int64 `json:"buyDuration,omitempty"` + // 余额支付金额(单位:分) + BalancePayAmount int64 `json:"balancePayAmount,omitempty"` + // 实付金额(单位:分) + ActualPayAmount int64 `json:"actualPayAmount,omitempty"` + // 订单创建时间 + CreateTime int64 `json:"createTime,omitempty"` + // 租户ID + TenantId int64 `json:"tenantId,omitempty"` + // 支付完成时间 + PaymentEndTime int64 `json:"paymentEndTime,omitempty"` + // 售卖类型 + BuyType string `json:"buyType,omitempty"` + // 代金券抵扣金额(单位:分) + VoucherPayAmount int64 `json:"voucherPayAmount,omitempty"` + // 下单用户ID + BuyerUserId string `json:"buyerUserId,omitempty"` + // 截止时间 + EndTime int64 `json:"endTime,omitempty"` + // 商品名称 + CommodityName string `json:"commodityName,omitempty"` + // 订单状态 + Status string `json:"status,omitempty"` +} From 38674caba94a65de3c56c1aa292aecbbd4607f94 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:16:57 +0800 Subject: [PATCH 063/255] feat: update --- ...oleadmingetorderresultmodelattributelist.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 client/model/consoleadmingetorderresultmodelattributelist.go diff --git a/client/model/consoleadmingetorderresultmodelattributelist.go b/client/model/consoleadmingetorderresultmodelattributelist.go new file mode 100644 index 00000000..ba9dcbcb --- /dev/null +++ b/client/model/consoleadmingetorderresultmodelattributelist.go @@ -0,0 +1,18 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminGetOrderResultModelAttributeList struct { + AttributeCode string `json:"attributeCode,omitempty"` + TimeStart int64 `json:"timeStart,omitempty"` + AttributeValueName string `json:"attributeValueName,omitempty"` + TimeTo int64 `json:"timeTo,omitempty"` + AttributeValue int32 `json:"attributeValue,omitempty"` + AttributeName string `json:"attributeName,omitempty"` + AttributeValueCode int64 `json:"attributeValueCode,omitempty"` + TimeUnit string `json:"timeUnit,omitempty"` +} From f85343d312ce6e089d70bc575c20d004ecc4e673 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:16:58 +0800 Subject: [PATCH 064/255] feat: update --- .../consoleadminlistactivateableinstancesforms.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 client/model/consoleadminlistactivateableinstancesforms.go diff --git a/client/model/consoleadminlistactivateableinstancesforms.go b/client/model/consoleadminlistactivateableinstancesforms.go new file mode 100644 index 00000000..255c9747 --- /dev/null +++ b/client/model/consoleadminlistactivateableinstancesforms.go @@ -0,0 +1,12 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminListActivateableInstancesForms struct { + ProjectId string `json:"projectId"` + VersionId string `json:"versionId"` +} From 9377b14386d21c238324691bf0bc96a65ca20605 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:16:59 +0800 Subject: [PATCH 065/255] feat: update --- .../consoleadminlistactivateableinstancesresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/consoleadminlistactivateableinstancesresult.go diff --git a/client/model/consoleadminlistactivateableinstancesresult.go b/client/model/consoleadminlistactivateableinstancesresult.go new file mode 100644 index 00000000..cb9b5c67 --- /dev/null +++ b/client/model/consoleadminlistactivateableinstancesresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminListActivateableInstancesResult struct { + Success bool `json:"success,omitempty"` + Model ConsoleAdminListActivateableInstancesResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From 9b59af4df0a8e0271165e678d593751495bcc7a2 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:17:00 +0800 Subject: [PATCH 066/255] feat: update --- ...nsoleadminlistactivateableinstancesresultmodel.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 client/model/consoleadminlistactivateableinstancesresultmodel.go diff --git a/client/model/consoleadminlistactivateableinstancesresultmodel.go b/client/model/consoleadminlistactivateableinstancesresultmodel.go new file mode 100644 index 00000000..fa409aa2 --- /dev/null +++ b/client/model/consoleadminlistactivateableinstancesresultmodel.go @@ -0,0 +1,12 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminListActivateableInstancesResultModel struct { + DataList []ConsoleAdminListActivateableInstancesResultModelDataList `json:"dataList,omitempty"` + Count int64 `json:"count,omitempty"` +} From 076bfef0c9c3212ded1c12e5aa1e38db411266ef Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:17:02 +0800 Subject: [PATCH 067/255] feat: update --- ...listactivateableinstancesresultmodeldatalist.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/consoleadminlistactivateableinstancesresultmodeldatalist.go diff --git a/client/model/consoleadminlistactivateableinstancesresultmodeldatalist.go b/client/model/consoleadminlistactivateableinstancesresultmodeldatalist.go new file mode 100644 index 00000000..300b9d7b --- /dev/null +++ b/client/model/consoleadminlistactivateableinstancesresultmodeldatalist.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminListActivateableInstancesResultModelDataList struct { + CloudGameInstanceId string `json:"cloudGameInstanceId,omitempty"` + CloudGameInstanceName string `json:"cloudGameInstanceName,omitempty"` + ContainerCount int32 `json:"containerCount,omitempty"` + MaxConcurrency int32 `json:"maxConcurrency,omitempty"` +} From 1ac63c5112ef7989626b40b018477a764a9ed873 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:17:03 +0800 Subject: [PATCH 068/255] feat: update --- .../model/consoleadminlistactivatedinstancesforms.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 client/model/consoleadminlistactivatedinstancesforms.go diff --git a/client/model/consoleadminlistactivatedinstancesforms.go b/client/model/consoleadminlistactivatedinstancesforms.go new file mode 100644 index 00000000..91e2ba0d --- /dev/null +++ b/client/model/consoleadminlistactivatedinstancesforms.go @@ -0,0 +1,12 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminListActivatedInstancesForms struct { + GameId string `json:"gameId"` + ProjectId string `json:"projectId"` +} From 18238c3c8ab3b46bc5721b9fed9c3cb5198db5c4 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:17:04 +0800 Subject: [PATCH 069/255] feat: update --- .../consoleadminlistactivatedinstancesresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/consoleadminlistactivatedinstancesresult.go diff --git a/client/model/consoleadminlistactivatedinstancesresult.go b/client/model/consoleadminlistactivatedinstancesresult.go new file mode 100644 index 00000000..4be33a3d --- /dev/null +++ b/client/model/consoleadminlistactivatedinstancesresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminListActivatedInstancesResult struct { + Success bool `json:"success,omitempty"` + Model ConsoleAdminListActivatedInstancesResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From c6dbfc18a0dff0ad8e796cbd10721ba7b2477a6f Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:17:05 +0800 Subject: [PATCH 070/255] feat: update --- .../consoleadminlistactivatedinstancesresultmodel.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 client/model/consoleadminlistactivatedinstancesresultmodel.go diff --git a/client/model/consoleadminlistactivatedinstancesresultmodel.go b/client/model/consoleadminlistactivatedinstancesresultmodel.go new file mode 100644 index 00000000..6e5a5742 --- /dev/null +++ b/client/model/consoleadminlistactivatedinstancesresultmodel.go @@ -0,0 +1,12 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminListActivatedInstancesResultModel struct { + DataList []ConsoleAdminListActivatedInstancesResultModelDataList `json:"dataList,omitempty"` + Count int64 `json:"count,omitempty"` +} From 7f20d73477d8d8212d128e1300c552e02c445565 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:17:06 +0800 Subject: [PATCH 071/255] feat: update --- ...minlistactivatedinstancesresultmodeldatalist.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/consoleadminlistactivatedinstancesresultmodeldatalist.go diff --git a/client/model/consoleadminlistactivatedinstancesresultmodeldatalist.go b/client/model/consoleadminlistactivatedinstancesresultmodeldatalist.go new file mode 100644 index 00000000..c11b9df4 --- /dev/null +++ b/client/model/consoleadminlistactivatedinstancesresultmodeldatalist.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminListActivatedInstancesResultModelDataList struct { + CloudGameInstanceId string `json:"cloudGameInstanceId,omitempty"` + CloudGameInstanceName string `json:"cloudGameInstanceName,omitempty"` + ContainerCount int32 `json:"containerCount,omitempty"` + MaxConcurrency int32 `json:"maxConcurrency,omitempty"` +} From d422bb157125d47058c9c3b7d62f7558ef28fe3e Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:17:07 +0800 Subject: [PATCH 072/255] feat: update --- .../model/consoleadminlistcontrollersofgameforms.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 client/model/consoleadminlistcontrollersofgameforms.go diff --git a/client/model/consoleadminlistcontrollersofgameforms.go b/client/model/consoleadminlistcontrollersofgameforms.go new file mode 100644 index 00000000..3aaad1ad --- /dev/null +++ b/client/model/consoleadminlistcontrollersofgameforms.go @@ -0,0 +1,13 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminListControllersOfGameForms struct { + GameId string `json:"gameId"` + NextToken *string `json:"nextToken,omitempty"` + MaxResults *int32 `json:"maxResults,omitempty"` +} From 05e1b977ad9cd235d7939ff7a9561141e0d36e64 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:17:09 +0800 Subject: [PATCH 073/255] feat: update --- .../consoleadminlistcontrollersofgameresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/consoleadminlistcontrollersofgameresult.go diff --git a/client/model/consoleadminlistcontrollersofgameresult.go b/client/model/consoleadminlistcontrollersofgameresult.go new file mode 100644 index 00000000..0759caf6 --- /dev/null +++ b/client/model/consoleadminlistcontrollersofgameresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminListControllersOfGameResult struct { + Success bool `json:"success,omitempty"` + Model ConsoleAdminListControllersOfGameResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From c24be497e2dd805ab6ddb52f06de31825928cad0 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:17:10 +0800 Subject: [PATCH 074/255] feat: update --- ...consoleadminlistcontrollersofgameresultmodel.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/consoleadminlistcontrollersofgameresultmodel.go diff --git a/client/model/consoleadminlistcontrollersofgameresultmodel.go b/client/model/consoleadminlistcontrollersofgameresultmodel.go new file mode 100644 index 00000000..28dc385e --- /dev/null +++ b/client/model/consoleadminlistcontrollersofgameresultmodel.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminListControllersOfGameResultModel struct { + NextToken string `json:"nextToken,omitempty"` + MaxResults int32 `json:"maxResults,omitempty"` + DataList []ConsoleAdminListControllersOfGameResultModelDataList `json:"dataList,omitempty"` + Count int64 `json:"count,omitempty"` +} From 6c3643f9e46c228abbbb8110a174ede97e721994 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:17:11 +0800 Subject: [PATCH 075/255] feat: update --- ...nlistcontrollersofgameresultmodeldatalist.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 client/model/consoleadminlistcontrollersofgameresultmodeldatalist.go diff --git a/client/model/consoleadminlistcontrollersofgameresultmodeldatalist.go b/client/model/consoleadminlistcontrollersofgameresultmodeldatalist.go new file mode 100644 index 00000000..c1c25116 --- /dev/null +++ b/client/model/consoleadminlistcontrollersofgameresultmodeldatalist.go @@ -0,0 +1,17 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminListControllersOfGameResultModelDataList struct { + BgPic string `json:"bgPic,omitempty"` + Ctltype string `json:"ctltype,omitempty"` + Name string `json:"name,omitempty"` + Id string `json:"id,omitempty"` + Type_ int32 `json:"type,omitempty"` + Priority int32 `json:"priority,omitempty"` + Config string `json:"config,omitempty"` +} From f7d97e61a702266a7a18087d9c31ad548973a188 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:17:12 +0800 Subject: [PATCH 076/255] feat: update --- .../consoleadminlistdeployableinstancesforms.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/consoleadminlistdeployableinstancesforms.go diff --git a/client/model/consoleadminlistdeployableinstancesforms.go b/client/model/consoleadminlistdeployableinstancesforms.go new file mode 100644 index 00000000..cc37fbed --- /dev/null +++ b/client/model/consoleadminlistdeployableinstancesforms.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminListDeployableInstancesForms struct { + VersionId string `json:"versionId"` + ProjectId string `json:"projectId"` + PageSize *int64 `json:"pageSize,omitempty"` + PageNumber *int64 `json:"pageNumber,omitempty"` +} From adcc697f8cd5d52ac332253ca2bc9bf1869228c8 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:17:13 +0800 Subject: [PATCH 077/255] feat: update --- .../consoleadminlistdeployableinstancesresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/consoleadminlistdeployableinstancesresult.go diff --git a/client/model/consoleadminlistdeployableinstancesresult.go b/client/model/consoleadminlistdeployableinstancesresult.go new file mode 100644 index 00000000..ff7ee1f3 --- /dev/null +++ b/client/model/consoleadminlistdeployableinstancesresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminListDeployableInstancesResult struct { + Success bool `json:"success,omitempty"` + Model ConsoleAdminListDeployableInstancesResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From ab9b67bd0545e0b374278b89a478d4ea517a3b88 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:17:15 +0800 Subject: [PATCH 078/255] feat: update --- ...nsoleadminlistdeployableinstancesresultmodel.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/consoleadminlistdeployableinstancesresultmodel.go diff --git a/client/model/consoleadminlistdeployableinstancesresultmodel.go b/client/model/consoleadminlistdeployableinstancesresultmodel.go new file mode 100644 index 00000000..0f11fffd --- /dev/null +++ b/client/model/consoleadminlistdeployableinstancesresultmodel.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminListDeployableInstancesResultModel struct { + PageNumber int64 `json:"pageNumber,omitempty"` + DataList []ConsoleAdminListDeployableInstancesResultModelDataList `json:"dataList,omitempty"` + PageSize int64 `json:"pageSize,omitempty"` + TotalCount int64 `json:"totalCount,omitempty"` +} From fde022e77a0d3570eef6f1af6b2986edb499e9c9 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:17:16 +0800 Subject: [PATCH 079/255] feat: update --- ...dminlistdeployableinstancesresultmodeldatalist.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 client/model/consoleadminlistdeployableinstancesresultmodeldatalist.go diff --git a/client/model/consoleadminlistdeployableinstancesresultmodeldatalist.go b/client/model/consoleadminlistdeployableinstancesresultmodeldatalist.go new file mode 100644 index 00000000..b5a44173 --- /dev/null +++ b/client/model/consoleadminlistdeployableinstancesresultmodeldatalist.go @@ -0,0 +1,12 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminListDeployableInstancesResultModelDataList struct { + CloudGameInstanceId string `json:"cloudGameInstanceId,omitempty"` + CloudGameInstanceName string `json:"cloudGameInstanceName,omitempty"` +} From 26bef79f9fa53d91e2c3bedceaa873013ddc2fd2 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:17:17 +0800 Subject: [PATCH 080/255] feat: update --- client/model/consoleadminlistgameccuforms.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 client/model/consoleadminlistgameccuforms.go diff --git a/client/model/consoleadminlistgameccuforms.go b/client/model/consoleadminlistgameccuforms.go new file mode 100644 index 00000000..47d61403 --- /dev/null +++ b/client/model/consoleadminlistgameccuforms.go @@ -0,0 +1,16 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminListGameCcuForms struct { + MixGameIds *string `json:"mixGameIds,omitempty"` + ProjectIds *string `json:"projectIds,omitempty"` + QueryTimeStart *int64 `json:"queryTimeStart,omitempty"` + QueryTimeEnd *int64 `json:"queryTimeEnd,omitempty"` + PageNumber *int32 `json:"pageNumber,omitempty"` + PageSize *int32 `json:"pageSize,omitempty"` +} From 09d14f887ab6b41fdcc653ec843f084b1935572e Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:17:18 +0800 Subject: [PATCH 081/255] feat: update --- client/model/consoleadminlistgameccuresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/consoleadminlistgameccuresult.go diff --git a/client/model/consoleadminlistgameccuresult.go b/client/model/consoleadminlistgameccuresult.go new file mode 100644 index 00000000..e864e6c1 --- /dev/null +++ b/client/model/consoleadminlistgameccuresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminListGameCcuResult struct { + Success bool `json:"success,omitempty"` + Model ConsoleAdminListGameCcuResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From bc711ef4741581ac7f4b7d5df7f097146122af48 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:17:19 +0800 Subject: [PATCH 082/255] feat: update --- client/model/consoleadminlistgameccuresultmodel.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/consoleadminlistgameccuresultmodel.go diff --git a/client/model/consoleadminlistgameccuresultmodel.go b/client/model/consoleadminlistgameccuresultmodel.go new file mode 100644 index 00000000..060c1b78 --- /dev/null +++ b/client/model/consoleadminlistgameccuresultmodel.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminListGameCcuResultModel struct { + PageNumber int32 `json:"pageNumber,omitempty"` + PageSize int32 `json:"pageSize,omitempty"` + TotalCount int64 `json:"totalCount,omitempty"` + Items []ConsoleAdminListGameCcuResultModelItems `json:"items,omitempty"` +} From d6d825a8ccc9f3c7e509d50da49fb817f8e1f2d9 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:17:20 +0800 Subject: [PATCH 083/255] feat: update --- .../consoleadminlistgameccuresultmodelitems.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 client/model/consoleadminlistgameccuresultmodelitems.go diff --git a/client/model/consoleadminlistgameccuresultmodelitems.go b/client/model/consoleadminlistgameccuresultmodelitems.go new file mode 100644 index 00000000..60b19455 --- /dev/null +++ b/client/model/consoleadminlistgameccuresultmodelitems.go @@ -0,0 +1,13 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminListGameCcuResultModelItems struct { + CcuValue string `json:"ccuValue,omitempty"` + GameName string `json:"gameName,omitempty"` + MixGameId string `json:"mixGameId,omitempty"` +} From dc614de22d7068e35afda952ca4311887b2da0d5 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:17:22 +0800 Subject: [PATCH 084/255] feat: update --- ...onsoleadminlistgamedeploydetailsofprojectforms.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 client/model/consoleadminlistgamedeploydetailsofprojectforms.go diff --git a/client/model/consoleadminlistgamedeploydetailsofprojectforms.go b/client/model/consoleadminlistgamedeploydetailsofprojectforms.go new file mode 100644 index 00000000..278bc931 --- /dev/null +++ b/client/model/consoleadminlistgamedeploydetailsofprojectforms.go @@ -0,0 +1,12 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminListGameDeployDetailsOfProjectForms struct { + ProjectId *string `json:"projectId,omitempty"` + GameId *string `json:"gameId,omitempty"` +} From f10f528c75efc83ad252d95a0cba9b8608137b94 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:17:23 +0800 Subject: [PATCH 085/255] feat: update --- ...oleadminlistgamedeploydetailsofprojectresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/consoleadminlistgamedeploydetailsofprojectresult.go diff --git a/client/model/consoleadminlistgamedeploydetailsofprojectresult.go b/client/model/consoleadminlistgamedeploydetailsofprojectresult.go new file mode 100644 index 00000000..4b947ab5 --- /dev/null +++ b/client/model/consoleadminlistgamedeploydetailsofprojectresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminListGameDeployDetailsOfProjectResult struct { + Success bool `json:"success,omitempty"` + Model ConsoleAdminListGameDeployDetailsOfProjectResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From e4cbe4a4040ce1c27cd31ce512bd25fb3beb55b8 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:17:24 +0800 Subject: [PATCH 086/255] feat: update --- ...minlistgamedeploydetailsofprojectresultmodel.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/consoleadminlistgamedeploydetailsofprojectresultmodel.go diff --git a/client/model/consoleadminlistgamedeploydetailsofprojectresultmodel.go b/client/model/consoleadminlistgamedeploydetailsofprojectresultmodel.go new file mode 100644 index 00000000..0e4acd45 --- /dev/null +++ b/client/model/consoleadminlistgamedeploydetailsofprojectresultmodel.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminListGameDeployDetailsOfProjectResultModel struct { + NextToken string `json:"nextToken,omitempty"` + MaxResults int32 `json:"maxResults,omitempty"` + DataList []ConsoleAdminListGameDeployDetailsOfProjectResultModelDataList `json:"dataList,omitempty"` + Count int64 `json:"count,omitempty"` +} From 07604ee8bee1d0a14b813680f794b582f73b3acf Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:17:25 +0800 Subject: [PATCH 087/255] feat: update --- ...amedeploydetailsofprojectresultmodeldatalist.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/consoleadminlistgamedeploydetailsofprojectresultmodeldatalist.go diff --git a/client/model/consoleadminlistgamedeploydetailsofprojectresultmodeldatalist.go b/client/model/consoleadminlistgamedeploydetailsofprojectresultmodeldatalist.go new file mode 100644 index 00000000..cb88353d --- /dev/null +++ b/client/model/consoleadminlistgamedeploydetailsofprojectresultmodeldatalist.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminListGameDeployDetailsOfProjectResultModelDataList struct { + VersionId string `json:"versionId,omitempty"` + AutoActiveStatus string `json:"autoActiveStatus,omitempty"` + VersionName string `json:"versionName,omitempty"` + DeployStatus string `json:"deployStatus,omitempty"` +} From 765e38118f106cbbfac473b9c05d506b750b3f4a Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:17:26 +0800 Subject: [PATCH 088/255] feat: update --- client/model/consoleadminlistgameversionsforms.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 client/model/consoleadminlistgameversionsforms.go diff --git a/client/model/consoleadminlistgameversionsforms.go b/client/model/consoleadminlistgameversionsforms.go new file mode 100644 index 00000000..4d87e6c9 --- /dev/null +++ b/client/model/consoleadminlistgameversionsforms.go @@ -0,0 +1,13 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminListGameVersionsForms struct { + NextToken *string `json:"nextToken,omitempty"` + MaxResults *int32 `json:"maxResults,omitempty"` + GameId string `json:"gameId"` +} From 82d2c1406b84359566b4fa9beb36d7b62ce924df Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:17:28 +0800 Subject: [PATCH 089/255] feat: update --- client/model/consoleadminlistgameversionsresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/consoleadminlistgameversionsresult.go diff --git a/client/model/consoleadminlistgameversionsresult.go b/client/model/consoleadminlistgameversionsresult.go new file mode 100644 index 00000000..abc11cbc --- /dev/null +++ b/client/model/consoleadminlistgameversionsresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminListGameVersionsResult struct { + Success bool `json:"success,omitempty"` + Model ConsoleAdminListGameVersionsResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From a9f67e0795c40d613f9143b02cce20dd52e87052 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:17:29 +0800 Subject: [PATCH 090/255] feat: update --- .../consoleadminlistgameversionsresultmodel.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/consoleadminlistgameversionsresultmodel.go diff --git a/client/model/consoleadminlistgameversionsresultmodel.go b/client/model/consoleadminlistgameversionsresultmodel.go new file mode 100644 index 00000000..e26a9cc2 --- /dev/null +++ b/client/model/consoleadminlistgameversionsresultmodel.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminListGameVersionsResultModel struct { + MaxResults int32 `json:"maxResults,omitempty"` + NextToken string `json:"nextToken,omitempty"` + DataList []ConsoleAdminListGameVersionsResultModelDataList `json:"dataList,omitempty"` + Count int64 `json:"count,omitempty"` +} From 744b42a7a8e2a50d2a653550084292c88cb39557 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:17:30 +0800 Subject: [PATCH 091/255] feat: update --- ...soleadminlistgameversionsresultmodeldatalist.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/consoleadminlistgameversionsresultmodeldatalist.go diff --git a/client/model/consoleadminlistgameversionsresultmodeldatalist.go b/client/model/consoleadminlistgameversionsresultmodeldatalist.go new file mode 100644 index 00000000..0798477a --- /dev/null +++ b/client/model/consoleadminlistgameversionsresultmodeldatalist.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminListGameVersionsResultModelDataList struct { + VersionId string `json:"versionId,omitempty"` + AdaptState string `json:"adaptState,omitempty"` + AdaptFinishTime int64 `json:"adaptFinishTime,omitempty"` + VersionName string `json:"versionName,omitempty"` +} From fe9d875dee6fdbd6e04e86555bd600f914bec973 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:17:31 +0800 Subject: [PATCH 092/255] feat: update --- client/model/consoleadminlistgamesforms.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 client/model/consoleadminlistgamesforms.go diff --git a/client/model/consoleadminlistgamesforms.go b/client/model/consoleadminlistgamesforms.go new file mode 100644 index 00000000..3aac6d50 --- /dev/null +++ b/client/model/consoleadminlistgamesforms.go @@ -0,0 +1,12 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminListGamesForms struct { + NextToken *string `json:"nextToken,omitempty"` + MaxResults *int32 `json:"maxResults,omitempty"` +} From 7b85ec080954f3043954386458ea6c9eb2c8e70c Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:17:32 +0800 Subject: [PATCH 093/255] feat: update --- client/model/consoleadminlistgamesresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/consoleadminlistgamesresult.go diff --git a/client/model/consoleadminlistgamesresult.go b/client/model/consoleadminlistgamesresult.go new file mode 100644 index 00000000..7c08a65b --- /dev/null +++ b/client/model/consoleadminlistgamesresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminListGamesResult struct { + Success bool `json:"success,omitempty"` + Model ConsoleAdminListGamesResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From b960c1200e10f4534d1ef1a52fe0c3d22c82ce29 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:17:34 +0800 Subject: [PATCH 094/255] feat: update --- client/model/consoleadminlistgamesresultmodel.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/consoleadminlistgamesresultmodel.go diff --git a/client/model/consoleadminlistgamesresultmodel.go b/client/model/consoleadminlistgamesresultmodel.go new file mode 100644 index 00000000..ce51a5d4 --- /dev/null +++ b/client/model/consoleadminlistgamesresultmodel.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminListGamesResultModel struct { + MaxResults int32 `json:"maxResults,omitempty"` + NextToken string `json:"nextToken,omitempty"` + DataList []ConsoleAdminListGamesResultModelDataList `json:"dataList,omitempty"` + Count string `json:"count,omitempty"` +} From 3fede83adec4200e8942320bdaf0fad1be997f4a Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:17:35 +0800 Subject: [PATCH 095/255] feat: update --- .../consoleadminlistgamesresultmodeldatalist.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 client/model/consoleadminlistgamesresultmodeldatalist.go diff --git a/client/model/consoleadminlistgamesresultmodeldatalist.go b/client/model/consoleadminlistgamesresultmodeldatalist.go new file mode 100644 index 00000000..010923aa --- /dev/null +++ b/client/model/consoleadminlistgamesresultmodeldatalist.go @@ -0,0 +1,13 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminListGamesResultModelDataList struct { + GameId string `json:"gameId,omitempty"` + GameName string `json:"gameName,omitempty"` + PlatformType int64 `json:"platformType,omitempty"` +} From 9d5e7089da046884ca0075782a40d39409a59809 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:17:36 +0800 Subject: [PATCH 096/255] feat: update --- .../consoleadminlistinstancesofprojectforms.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 client/model/consoleadminlistinstancesofprojectforms.go diff --git a/client/model/consoleadminlistinstancesofprojectforms.go b/client/model/consoleadminlistinstancesofprojectforms.go new file mode 100644 index 00000000..cd2e37e9 --- /dev/null +++ b/client/model/consoleadminlistinstancesofprojectforms.go @@ -0,0 +1,13 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminListInstancesOfProjectForms struct { + NextToken *string `json:"nextToken,omitempty"` + MaxResult *int32 `json:"maxResult,omitempty"` + ProjectId string `json:"projectId"` +} From e87613179c7d1a40debbf156305d9a0788fd35b1 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:17:37 +0800 Subject: [PATCH 097/255] feat: update --- .../consoleadminlistinstancesofprojectresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/consoleadminlistinstancesofprojectresult.go diff --git a/client/model/consoleadminlistinstancesofprojectresult.go b/client/model/consoleadminlistinstancesofprojectresult.go new file mode 100644 index 00000000..3f17c99e --- /dev/null +++ b/client/model/consoleadminlistinstancesofprojectresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminListInstancesOfProjectResult struct { + Success string `json:"success,omitempty"` + Model ConsoleAdminListInstancesOfProjectResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From 33b4d2bb4395a611eee86c863b6074d50a039051 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:17:38 +0800 Subject: [PATCH 098/255] feat: update --- ...onsoleadminlistinstancesofprojectresultmodel.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/consoleadminlistinstancesofprojectresultmodel.go diff --git a/client/model/consoleadminlistinstancesofprojectresultmodel.go b/client/model/consoleadminlistinstancesofprojectresultmodel.go new file mode 100644 index 00000000..ad3d571f --- /dev/null +++ b/client/model/consoleadminlistinstancesofprojectresultmodel.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminListInstancesOfProjectResultModel struct { + MaxResult int32 `json:"maxResult,omitempty"` + NextToken string `json:"nextToken,omitempty"` + DataList []ConsoleAdminListInstancesOfProjectResultModelDataList `json:"dataList,omitempty"` + Count int32 `json:"count,omitempty"` +} From bfbb9d3e41218f95779cc5af83b8802df4d15b9f Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:17:40 +0800 Subject: [PATCH 099/255] feat: update --- ...stinstancesofprojectresultmodeldatalist.go | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 client/model/consoleadminlistinstancesofprojectresultmodeldatalist.go diff --git a/client/model/consoleadminlistinstancesofprojectresultmodeldatalist.go b/client/model/consoleadminlistinstancesofprojectresultmodeldatalist.go new file mode 100644 index 00000000..8ffca602 --- /dev/null +++ b/client/model/consoleadminlistinstancesofprojectresultmodeldatalist.go @@ -0,0 +1,25 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminListInstancesOfProjectResultModelDataList struct { + CommoditySpecificationCnName string `json:"commoditySpecificationCnName,omitempty"` + BandwidthChargeType string `json:"bandwidthChargeType,omitempty"` + EffectiveTime int32 `json:"effectiveTime,omitempty"` + PlatformType string `json:"platformType,omitempty"` + PaymentType string `json:"paymentType,omitempty"` + Token string `json:"token,omitempty"` + ExpireTime int32 `json:"expireTime,omitempty"` + CommodityInstanceName string `json:"commodityInstanceName,omitempty"` + CommodityInstanceId string `json:"commodityInstanceId,omitempty"` + Region string `json:"region,omitempty"` + ProjectName string `json:"projectName,omitempty"` + ProjectId string `json:"projectId,omitempty"` + ContainerCount string `json:"containerCount,omitempty"` + Status string `json:"status,omitempty"` + TradeChannel string `json:"tradeChannel,omitempty"` +} From 88a2aff60a2d13c87ff903f12043633a05981732 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:17:41 +0800 Subject: [PATCH 100/255] feat: update --- client/model/consoleadminlistmonthbillforms.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 client/model/consoleadminlistmonthbillforms.go diff --git a/client/model/consoleadminlistmonthbillforms.go b/client/model/consoleadminlistmonthbillforms.go new file mode 100644 index 00000000..88c08365 --- /dev/null +++ b/client/model/consoleadminlistmonthbillforms.go @@ -0,0 +1,16 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminListMonthBillForms struct { + AccountingPeriodFrom string `json:"accountingPeriodFrom"` + AccountingPeriodTo string `json:"accountingPeriodTo"` + // 状态 + Status *string `json:"status,omitempty"` + PageNumber *int32 `json:"pageNumber,omitempty"` + PageSize *int32 `json:"pageSize,omitempty"` +} From 9529fdc5626aa1948b19229f56da7c6367a704b1 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:17:42 +0800 Subject: [PATCH 101/255] feat: update --- client/model/consoleadminlistmonthbillresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/consoleadminlistmonthbillresult.go diff --git a/client/model/consoleadminlistmonthbillresult.go b/client/model/consoleadminlistmonthbillresult.go new file mode 100644 index 00000000..0fd3110c --- /dev/null +++ b/client/model/consoleadminlistmonthbillresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminListMonthBillResult struct { + Success bool `json:"success,omitempty"` + Model ConsoleAdminListMonthBillResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From b40b7a9ca4aa06d58912c6b24c7d733284c6f1e7 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:17:43 +0800 Subject: [PATCH 102/255] feat: update --- .../consoleadminlistmonthbillresultmodel.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 client/model/consoleadminlistmonthbillresultmodel.go diff --git a/client/model/consoleadminlistmonthbillresultmodel.go b/client/model/consoleadminlistmonthbillresultmodel.go new file mode 100644 index 00000000..8813970d --- /dev/null +++ b/client/model/consoleadminlistmonthbillresultmodel.go @@ -0,0 +1,18 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminListMonthBillResultModel struct { + // 页码 + PageNumber int32 `json:"pageNumber,omitempty"` + // 没页数量 + PageSize int32 `json:"pageSize,omitempty"` + // 总数量 + TotalCount int64 `json:"totalCount,omitempty"` + // 列表 + Items []ConsoleAdminListMonthBillResultModelItems `json:"items,omitempty"` +} From e3c64036ddb9698289aa5796949a2c163d1898af Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:17:44 +0800 Subject: [PATCH 103/255] feat: update --- ...nsoleadminlistmonthbillresultmodelitems.go | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 client/model/consoleadminlistmonthbillresultmodelitems.go diff --git a/client/model/consoleadminlistmonthbillresultmodelitems.go b/client/model/consoleadminlistmonthbillresultmodelitems.go new file mode 100644 index 00000000..f1b9b8a0 --- /dev/null +++ b/client/model/consoleadminlistmonthbillresultmodelitems.go @@ -0,0 +1,24 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminListMonthBillResultModelItems struct { + // 到期还款日期 + LatestPaidTime string `json:"latestPaidTime,omitempty"` + // 租户名称 + TenantName string `json:"tenantName,omitempty"` + // 租户ID + TenantId int64 `json:"tenantId,omitempty"` + // 账单状态 + BillStatus string `json:"billStatus,omitempty"` + // 账期 + AccountingPeriod string `json:"accountingPeriod,omitempty"` + // 已出账的日期 + BillOutgoingTime string `json:"billOutgoingTime,omitempty"` + // 消费金额 + CashPayAmount int64 `json:"cashPayAmount,omitempty"` +} From b43ab8eafa099f4e15159bb17cb3900021c79900 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:17:45 +0800 Subject: [PATCH 104/255] feat: update --- client/model/consoleadminlistprojectsforms.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 client/model/consoleadminlistprojectsforms.go diff --git a/client/model/consoleadminlistprojectsforms.go b/client/model/consoleadminlistprojectsforms.go new file mode 100644 index 00000000..5a91012b --- /dev/null +++ b/client/model/consoleadminlistprojectsforms.go @@ -0,0 +1,12 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminListProjectsForms struct { + NextToken *string `json:"nextToken,omitempty"` + MaxResults *int32 `json:"maxResults,omitempty"` +} From 87b705283f5178a35fe70ba3fdce039c8fa9286c Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:17:47 +0800 Subject: [PATCH 105/255] feat: update --- client/model/consoleadminlistprojectsresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/consoleadminlistprojectsresult.go diff --git a/client/model/consoleadminlistprojectsresult.go b/client/model/consoleadminlistprojectsresult.go new file mode 100644 index 00000000..c04cd956 --- /dev/null +++ b/client/model/consoleadminlistprojectsresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminListProjectsResult struct { + Success bool `json:"success,omitempty"` + Model ConsoleAdminListProjectsResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From 77063561b9c1f5c5b94a5ebb61d8fa7f8787a2bf Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:17:48 +0800 Subject: [PATCH 106/255] feat: update --- .../model/consoleadminlistprojectsresultmodel.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/consoleadminlistprojectsresultmodel.go diff --git a/client/model/consoleadminlistprojectsresultmodel.go b/client/model/consoleadminlistprojectsresultmodel.go new file mode 100644 index 00000000..90521d44 --- /dev/null +++ b/client/model/consoleadminlistprojectsresultmodel.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminListProjectsResultModel struct { + MaxResults int32 `json:"maxResults,omitempty"` + NextToken string `json:"nextToken,omitempty"` + DataList []ConsoleAdminListProjectsResultModelDataList `json:"dataList,omitempty"` + Count int64 `json:"count,omitempty"` +} From 0757790f1f7566cf8b840be08430aa39ef1219c2 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:17:49 +0800 Subject: [PATCH 107/255] feat: update --- .../consoleadminlistprojectsresultmodeldatalist.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 client/model/consoleadminlistprojectsresultmodeldatalist.go diff --git a/client/model/consoleadminlistprojectsresultmodeldatalist.go b/client/model/consoleadminlistprojectsresultmodeldatalist.go new file mode 100644 index 00000000..922bbd4b --- /dev/null +++ b/client/model/consoleadminlistprojectsresultmodeldatalist.go @@ -0,0 +1,12 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminListProjectsResultModelDataList struct { + ProjectName string `json:"projectName,omitempty"` + ProjectId string `json:"projectId,omitempty"` +} From d09755d470871df5ac28f8eff9fb21215cfc800d Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:17:50 +0800 Subject: [PATCH 108/255] feat: update --- .../consoleadminlistversiondeployinstancesforms.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/consoleadminlistversiondeployinstancesforms.go diff --git a/client/model/consoleadminlistversiondeployinstancesforms.go b/client/model/consoleadminlistversiondeployinstancesforms.go new file mode 100644 index 00000000..4eb56058 --- /dev/null +++ b/client/model/consoleadminlistversiondeployinstancesforms.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminListVersionDeployInstancesForms struct { + ProjectId *string `json:"projectId,omitempty"` + GameId *string `json:"gameId,omitempty"` + VersionId *string `json:"versionId,omitempty"` + DeployStatus *string `json:"deployStatus,omitempty"` +} From b73d48d27be6abd4e4fc53d0d8c2781b4448837c Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:17:51 +0800 Subject: [PATCH 109/255] feat: update --- ...consoleadminlistversiondeployinstancesresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/consoleadminlistversiondeployinstancesresult.go diff --git a/client/model/consoleadminlistversiondeployinstancesresult.go b/client/model/consoleadminlistversiondeployinstancesresult.go new file mode 100644 index 00000000..cbdf13f3 --- /dev/null +++ b/client/model/consoleadminlistversiondeployinstancesresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminListVersionDeployInstancesResult struct { + Success bool `json:"success,omitempty"` + Model ConsoleAdminListVersionDeployInstancesResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From 88e25da10c800c8b4bf004fcdf07a8fa94576253 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:17:53 +0800 Subject: [PATCH 110/255] feat: update --- ...leadminlistversiondeployinstancesresultmodel.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/consoleadminlistversiondeployinstancesresultmodel.go diff --git a/client/model/consoleadminlistversiondeployinstancesresultmodel.go b/client/model/consoleadminlistversiondeployinstancesresultmodel.go new file mode 100644 index 00000000..0a956103 --- /dev/null +++ b/client/model/consoleadminlistversiondeployinstancesresultmodel.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminListVersionDeployInstancesResultModel struct { + NextToken string `json:"nextToken,omitempty"` + MaxResults int32 `json:"maxResults,omitempty"` + DataList []ConsoleAdminListVersionDeployInstancesResultModelDataList `json:"dataList,omitempty"` + Count int64 `json:"count,omitempty"` +} From 77949ee87926c0199b7ed7219a7e528a190e5606 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:17:54 +0800 Subject: [PATCH 111/255] feat: update --- ...nlistversiondeployinstancesresultmodeldatalist.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 client/model/consoleadminlistversiondeployinstancesresultmodeldatalist.go diff --git a/client/model/consoleadminlistversiondeployinstancesresultmodeldatalist.go b/client/model/consoleadminlistversiondeployinstancesresultmodeldatalist.go new file mode 100644 index 00000000..cd02b036 --- /dev/null +++ b/client/model/consoleadminlistversiondeployinstancesresultmodeldatalist.go @@ -0,0 +1,12 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminListVersionDeployInstancesResultModelDataList struct { + CloudGameInstanceId string `json:"cloudGameInstanceId,omitempty"` + CloudGameInstanceName string `json:"cloudGameInstanceName,omitempty"` +} From 1d2241861e34c48496dae221ce72705a3afe3acb Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:17:55 +0800 Subject: [PATCH 112/255] feat: update --- .../consoleadminqueryadaptresultbyversionidforms.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 client/model/consoleadminqueryadaptresultbyversionidforms.go diff --git a/client/model/consoleadminqueryadaptresultbyversionidforms.go b/client/model/consoleadminqueryadaptresultbyversionidforms.go new file mode 100644 index 00000000..0d20c7d9 --- /dev/null +++ b/client/model/consoleadminqueryadaptresultbyversionidforms.go @@ -0,0 +1,11 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminQueryAdaptResultByVersionIdForms struct { + MixVersionId string `json:"mixVersionId"` +} From a9f8558ddbc7f912d0eaa73922a485a6e800df5d Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:17:56 +0800 Subject: [PATCH 113/255] feat: update --- ...onsoleadminqueryadaptresultbyversionidresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/consoleadminqueryadaptresultbyversionidresult.go diff --git a/client/model/consoleadminqueryadaptresultbyversionidresult.go b/client/model/consoleadminqueryadaptresultbyversionidresult.go new file mode 100644 index 00000000..13bb160d --- /dev/null +++ b/client/model/consoleadminqueryadaptresultbyversionidresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminQueryAdaptResultByVersionIdResult struct { + Success bool `json:"success,omitempty"` + Model []ConsoleAdminQueryAdaptResultByVersionIdResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From ebf253cdef53afb41e39a8920c0422122ec359d1 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:17:57 +0800 Subject: [PATCH 114/255] feat: update --- ...nqueryadaptresultbyversionidresultmodel.go | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 client/model/consoleadminqueryadaptresultbyversionidresultmodel.go diff --git a/client/model/consoleadminqueryadaptresultbyversionidresultmodel.go b/client/model/consoleadminqueryadaptresultbyversionidresultmodel.go new file mode 100644 index 00000000..14cf0812 --- /dev/null +++ b/client/model/consoleadminqueryadaptresultbyversionidresultmodel.go @@ -0,0 +1,26 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminQueryAdaptResultByVersionIdResultModel struct { + AdaptFileSourceName string `json:"adaptFileSourceName,omitempty"` + DictFrameRate string `json:"dictFrameRate,omitempty"` + DictMachineTypeVm string `json:"dictMachineTypeVm,omitempty"` + ContainerType int32 `json:"containerType,omitempty"` + Sandbox int32 `json:"sandbox,omitempty"` + PlatformType int32 `json:"platformType,omitempty"` + Priority int32 `json:"priority,omitempty"` + Resolution string `json:"resolution,omitempty"` + AdaptFileSource string `json:"adaptFileSource,omitempty"` + Required int32 `json:"required,omitempty"` + MaxConcurrency int32 `json:"maxConcurrency,omitempty"` + State int32 `json:"state,omitempty"` + PipelineType int32 `json:"pipelineType,omitempty"` + DictPicQuality string `json:"dictPicQuality,omitempty"` + DictIsvName string `json:"dictIsvName,omitempty"` + CalculationEvaluation map[string]string `json:"calculationEvaluation,omitempty"` +} From 097a761abaf65acc8b55646e8be3761049a476e8 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:17:58 +0800 Subject: [PATCH 115/255] feat: update --- .../consoleadminrecommendspecificationforms.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 client/model/consoleadminrecommendspecificationforms.go diff --git a/client/model/consoleadminrecommendspecificationforms.go b/client/model/consoleadminrecommendspecificationforms.go new file mode 100644 index 00000000..843c186b --- /dev/null +++ b/client/model/consoleadminrecommendspecificationforms.go @@ -0,0 +1,13 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminRecommendSpecificationForms struct { + GameId string `json:"gameId"` + GameVersionId string `json:"gameVersionId"` + PlatformType int32 `json:"platformType"` +} From c98e9ae4ebd9825a266e84a84ddc2bbbf73f67f1 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:18:00 +0800 Subject: [PATCH 116/255] feat: update --- .../consoleadminrecommendspecificationresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/consoleadminrecommendspecificationresult.go diff --git a/client/model/consoleadminrecommendspecificationresult.go b/client/model/consoleadminrecommendspecificationresult.go new file mode 100644 index 00000000..afd3660f --- /dev/null +++ b/client/model/consoleadminrecommendspecificationresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminRecommendSpecificationResult struct { + Success bool `json:"success,omitempty"` + Model []ConsoleAdminRecommendSpecificationResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From cc514b609eab3819df309bf8b8c3494d341557d5 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:18:01 +0800 Subject: [PATCH 117/255] feat: update --- ...onsoleadminrecommendspecificationresultmodel.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/consoleadminrecommendspecificationresultmodel.go diff --git a/client/model/consoleadminrecommendspecificationresultmodel.go b/client/model/consoleadminrecommendspecificationresultmodel.go new file mode 100644 index 00000000..7ae780b0 --- /dev/null +++ b/client/model/consoleadminrecommendspecificationresultmodel.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminRecommendSpecificationResultModel struct { + SpecificationCnName string `json:"specificationCnName,omitempty"` + SpecificationValueCode string `json:"specificationValueCode,omitempty"` + SpecificationName string `json:"specificationName,omitempty"` + SpecificationAttributeCode string `json:"specificationAttributeCode,omitempty"` +} From dd8296dcd5dda882c38f146843df07cdc6cc0e7a Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:18:02 +0800 Subject: [PATCH 118/255] feat: update --- .../model/consoleadminremovegamefromprojectforms.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 client/model/consoleadminremovegamefromprojectforms.go diff --git a/client/model/consoleadminremovegamefromprojectforms.go b/client/model/consoleadminremovegamefromprojectforms.go new file mode 100644 index 00000000..e7ede190 --- /dev/null +++ b/client/model/consoleadminremovegamefromprojectforms.go @@ -0,0 +1,12 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminRemoveGameFromProjectForms struct { + ProjectId string `json:"projectId"` + GameId string `json:"gameId"` +} From 716e11e2a5de0a07cce2ca525452fb2a5de205d7 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:18:03 +0800 Subject: [PATCH 119/255] feat: update --- .../consoleadminremovegamefromprojectresult.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 client/model/consoleadminremovegamefromprojectresult.go diff --git a/client/model/consoleadminremovegamefromprojectresult.go b/client/model/consoleadminremovegamefromprojectresult.go new file mode 100644 index 00000000..84f41f4a --- /dev/null +++ b/client/model/consoleadminremovegamefromprojectresult.go @@ -0,0 +1,13 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminRemoveGameFromProjectResult struct { + Success bool `json:"success,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From 8b84f4aa1f48207d994824fd026b8f928c5929cc Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:18:05 +0800 Subject: [PATCH 120/255] feat: update --- client/model/consoleadminrtoverviewforms.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/consoleadminrtoverviewforms.go diff --git a/client/model/consoleadminrtoverviewforms.go b/client/model/consoleadminrtoverviewforms.go new file mode 100644 index 00000000..6d861da6 --- /dev/null +++ b/client/model/consoleadminrtoverviewforms.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminRtOverViewForms struct { + MixGameIds *string `json:"mixGameIds,omitempty"` + ProjectIds *string `json:"projectIds,omitempty"` + QueryTimeStart *int64 `json:"queryTimeStart,omitempty"` + QueryTimeEnd *int64 `json:"queryTimeEnd,omitempty"` +} From 616df4b21b49a0220a2266cca4c0a052c64d0e9d Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:18:06 +0800 Subject: [PATCH 121/255] feat: update --- client/model/consoleadminrtoverviewresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/consoleadminrtoverviewresult.go diff --git a/client/model/consoleadminrtoverviewresult.go b/client/model/consoleadminrtoverviewresult.go new file mode 100644 index 00000000..e8f7bb8f --- /dev/null +++ b/client/model/consoleadminrtoverviewresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminRtOverViewResult struct { + Success bool `json:"success,omitempty"` + Model []ConsoleAdminRtOverViewResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From a16d0070abe2d192e31baebe12c61a0b2c12f8a7 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:18:07 +0800 Subject: [PATCH 122/255] feat: update --- client/model/consoleadminrtoverviewresultmodel.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 client/model/consoleadminrtoverviewresultmodel.go diff --git a/client/model/consoleadminrtoverviewresultmodel.go b/client/model/consoleadminrtoverviewresultmodel.go new file mode 100644 index 00000000..f9ca5318 --- /dev/null +++ b/client/model/consoleadminrtoverviewresultmodel.go @@ -0,0 +1,13 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminRtOverViewResultModel struct { + IndicatorType string `json:"indicatorType,omitempty"` + MaxValue string `json:"maxValue,omitempty"` + Name string `json:"name,omitempty"` +} From 8e650f83579b54aa18f34fbf179ef481f34f04a5 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:18:08 +0800 Subject: [PATCH 123/255] feat: update --- client/model/consoleadminrttrendforms.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 client/model/consoleadminrttrendforms.go diff --git a/client/model/consoleadminrttrendforms.go b/client/model/consoleadminrttrendforms.go new file mode 100644 index 00000000..ed78ee02 --- /dev/null +++ b/client/model/consoleadminrttrendforms.go @@ -0,0 +1,16 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminRtTrendForms struct { + GroupType *string `json:"groupType,omitempty"` + IndicatorTypes *string `json:"indicatorTypes,omitempty"` + MixGameIds *string `json:"mixGameIds,omitempty"` + ProjectIds *string `json:"projectIds,omitempty"` + QueryTimeStart *int64 `json:"queryTimeStart,omitempty"` + QueryTimeEnd *int64 `json:"queryTimeEnd,omitempty"` +} From fbccd5bcac207b5f0f4b87e4af495069cd8827ce Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:18:09 +0800 Subject: [PATCH 124/255] feat: update --- client/model/consoleadminrttrendresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/consoleadminrttrendresult.go diff --git a/client/model/consoleadminrttrendresult.go b/client/model/consoleadminrttrendresult.go new file mode 100644 index 00000000..57c39cbc --- /dev/null +++ b/client/model/consoleadminrttrendresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminRtTrendResult struct { + Success bool `json:"success,omitempty"` + Model ConsoleAdminRtTrendResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From c815c043110391f82c860e35888eb30a5cd18d4d Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:18:10 +0800 Subject: [PATCH 125/255] feat: update --- client/model/consoleadminrttrendresultmodel.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 client/model/consoleadminrttrendresultmodel.go diff --git a/client/model/consoleadminrttrendresultmodel.go b/client/model/consoleadminrttrendresultmodel.go new file mode 100644 index 00000000..4f267f4a --- /dev/null +++ b/client/model/consoleadminrttrendresultmodel.go @@ -0,0 +1,12 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminRtTrendResultModel struct { + Data []ConsoleAdminRtTrendResultModelData `json:"data,omitempty"` + MaxValue string `json:"maxValue,omitempty"` +} From 1373a9bea04a4e6547e111f9b90c8f6ff9053add Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:18:12 +0800 Subject: [PATCH 126/255] feat: update --- client/model/consoleadminrttrendresultmodeldata.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/consoleadminrttrendresultmodeldata.go diff --git a/client/model/consoleadminrttrendresultmodeldata.go b/client/model/consoleadminrttrendresultmodeldata.go new file mode 100644 index 00000000..817b4314 --- /dev/null +++ b/client/model/consoleadminrttrendresultmodeldata.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminRtTrendResultModelData struct { + Data []ConsoleAdminRtTrendResultModelDataData `json:"data,omitempty"` + IndicatorType string `json:"indicatorType,omitempty"` + MaxValue string `json:"maxValue,omitempty"` + Name string `json:"name,omitempty"` +} From 242451d02f6a95c4c55f6bc7ed77f85d293b5b72 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:18:13 +0800 Subject: [PATCH 127/255] feat: update --- .../model/consoleadminrttrendresultmodeldatadata.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 client/model/consoleadminrttrendresultmodeldatadata.go diff --git a/client/model/consoleadminrttrendresultmodeldatadata.go b/client/model/consoleadminrttrendresultmodeldatadata.go new file mode 100644 index 00000000..abd2d583 --- /dev/null +++ b/client/model/consoleadminrttrendresultmodeldatadata.go @@ -0,0 +1,12 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminRtTrendResultModelDataData struct { + TimeStamp int64 `json:"timeStamp,omitempty"` + Value string `json:"value,omitempty"` +} From fd95ea59c1e4e078af7200f516694e3c9d7a60a9 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:18:14 +0800 Subject: [PATCH 128/255] feat: update --- client/model/consoleadminsubmitdeploymentforms.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 client/model/consoleadminsubmitdeploymentforms.go diff --git a/client/model/consoleadminsubmitdeploymentforms.go b/client/model/consoleadminsubmitdeploymentforms.go new file mode 100644 index 00000000..cb8eb0e8 --- /dev/null +++ b/client/model/consoleadminsubmitdeploymentforms.go @@ -0,0 +1,15 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminSubmitDeploymentForms struct { + GameId string `json:"gameId"` + ProjectId string `json:"projectId"` + VersionId string `json:"versionId"` + CloudGameInstanceIds string `json:"cloudGameInstanceIds"` + OperationType string `json:"operationType"` +} From c402157662c0d754aad222b0ddaac796ef0c1cb9 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:18:15 +0800 Subject: [PATCH 129/255] feat: update --- client/model/consoleadminsubmitdeploymentresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/consoleadminsubmitdeploymentresult.go diff --git a/client/model/consoleadminsubmitdeploymentresult.go b/client/model/consoleadminsubmitdeploymentresult.go new file mode 100644 index 00000000..cd42d927 --- /dev/null +++ b/client/model/consoleadminsubmitdeploymentresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminSubmitDeploymentResult struct { + Success bool `json:"success,omitempty"` + Model ConsoleAdminSubmitDeploymentResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From b8df49679d4525bc06464fb87a35e14aa3763a00 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:18:16 +0800 Subject: [PATCH 130/255] feat: update --- .../model/consoleadminsubmitdeploymentresultmodel.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 client/model/consoleadminsubmitdeploymentresultmodel.go diff --git a/client/model/consoleadminsubmitdeploymentresultmodel.go b/client/model/consoleadminsubmitdeploymentresultmodel.go new file mode 100644 index 00000000..d0dad55a --- /dev/null +++ b/client/model/consoleadminsubmitdeploymentresultmodel.go @@ -0,0 +1,11 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminSubmitDeploymentResultModel struct { + TaskId string `json:"taskId,omitempty"` +} From 79871537996c0c33b91d7559cc5e9a359064d4c8 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:18:18 +0800 Subject: [PATCH 131/255] feat: update --- ...onsoleadminuploadgameversionbydownloadforms.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 client/model/consoleadminuploadgameversionbydownloadforms.go diff --git a/client/model/consoleadminuploadgameversionbydownloadforms.go b/client/model/consoleadminuploadgameversionbydownloadforms.go new file mode 100644 index 00000000..9628f2ce --- /dev/null +++ b/client/model/consoleadminuploadgameversionbydownloadforms.go @@ -0,0 +1,15 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminUploadGameVersionByDownloadForms struct { + Hash string `json:"hash"` + GameId string `json:"gameId"` + DownloadType ConsoleAdminUploadGameVersionByDownloadFormsDownloadType `json:"downloadType"` + VersionName string `json:"versionName"` + OsManifest *string `json:"osManifest,omitempty"` +} From 378ab657f9f6eda4907c34fd6aafb6fa4f63d828 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:18:19 +0800 Subject: [PATCH 132/255] feat: update --- ...inuploadgameversionbydownloadformsdownloadtype.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 client/model/consoleadminuploadgameversionbydownloadformsdownloadtype.go diff --git a/client/model/consoleadminuploadgameversionbydownloadformsdownloadtype.go b/client/model/consoleadminuploadgameversionbydownloadformsdownloadtype.go new file mode 100644 index 00000000..b69681d0 --- /dev/null +++ b/client/model/consoleadminuploadgameversionbydownloadformsdownloadtype.go @@ -0,0 +1,12 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminUploadGameVersionByDownloadFormsDownloadType struct { + GameUrl *string `json:"gameUrl,omitempty"` + Type_ *string `json:"type,omitempty"` +} From 977819e36542df881931f516e4805a2c8057c0d5 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:18:20 +0800 Subject: [PATCH 133/255] feat: update --- ...onsoleadminuploadgameversionbydownloadresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/consoleadminuploadgameversionbydownloadresult.go diff --git a/client/model/consoleadminuploadgameversionbydownloadresult.go b/client/model/consoleadminuploadgameversionbydownloadresult.go new file mode 100644 index 00000000..a4fb48a9 --- /dev/null +++ b/client/model/consoleadminuploadgameversionbydownloadresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminUploadGameVersionByDownloadResult struct { + Success bool `json:"success,omitempty"` + Model ConsoleAdminUploadGameVersionByDownloadResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From 77526c3cb287f524c543faacf7e88c881f666300 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:18:21 +0800 Subject: [PATCH 134/255] feat: update --- ...soleadminuploadgameversionbydownloadresultmodel.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 client/model/consoleadminuploadgameversionbydownloadresultmodel.go diff --git a/client/model/consoleadminuploadgameversionbydownloadresultmodel.go b/client/model/consoleadminuploadgameversionbydownloadresultmodel.go new file mode 100644 index 00000000..be1e0445 --- /dev/null +++ b/client/model/consoleadminuploadgameversionbydownloadresultmodel.go @@ -0,0 +1,11 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminUploadGameVersionByDownloadResultModel struct { + TaskId string `json:"taskId,omitempty"` +} From 00dcf7f4dd8a95ac1f9adfe8584674f323976477 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:18:22 +0800 Subject: [PATCH 135/255] feat: update --- client/model/gamenotifyforms.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 client/model/gamenotifyforms.go diff --git a/client/model/gamenotifyforms.go b/client/model/gamenotifyforms.go new file mode 100644 index 00000000..8ec544e5 --- /dev/null +++ b/client/model/gamenotifyforms.go @@ -0,0 +1,15 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type GameNotifyForms struct { + // appKey + AppKey string `json:"appKey"` + GameSession string `json:"gameSession"` + Type_ string `json:"type"` + Value *string `json:"value,omitempty"` +} From 670d22ce6b919ccec9d15a04309928efd488283c Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:18:23 +0800 Subject: [PATCH 136/255] feat: update --- client/model/gamenotifyresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/gamenotifyresult.go diff --git a/client/model/gamenotifyresult.go b/client/model/gamenotifyresult.go new file mode 100644 index 00000000..def8afe5 --- /dev/null +++ b/client/model/gamenotifyresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type GameNotifyResult struct { + Success bool `json:"success,omitempty"` + Model GameNotifyResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From 73dd6065acf40eedbcd41ac2476b9364c67cf31c Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:18:25 +0800 Subject: [PATCH 137/255] feat: update --- client/model/gamenotifyresultmodel.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/gamenotifyresultmodel.go diff --git a/client/model/gamenotifyresultmodel.go b/client/model/gamenotifyresultmodel.go new file mode 100644 index 00000000..535d6938 --- /dev/null +++ b/client/model/gamenotifyresultmodel.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type GameNotifyResultModel struct { + Code string `json:"code,omitempty"` + Success bool `json:"success,omitempty"` + Message string `json:"message,omitempty"` + GameSession string `json:"gameSession,omitempty"` +} From 07de33292117c14ba7b13ebfc288d7f034dde970 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:18:26 +0800 Subject: [PATCH 138/255] feat: update --- client/model/getgameconcurrencyforms.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 client/model/getgameconcurrencyforms.go diff --git a/client/model/getgameconcurrencyforms.go b/client/model/getgameconcurrencyforms.go new file mode 100644 index 00000000..5fcb0371 --- /dev/null +++ b/client/model/getgameconcurrencyforms.go @@ -0,0 +1,18 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type GetGameConcurrencyForms struct { + // 游戏ID + GameId string `json:"gameId"` + // 云游戏项目应用AK + AppKey string `json:"appKey"` + // 是否查询PaaS当前排队人数 + QueryQueueConcurrency *bool `json:"queryQueueConcurrency,omitempty"` + // 指定userLevel查询当前userLevel排队人数,不指定时,查询当前所有排队人数 + QueueUserLevel *int32 `json:"queueUserLevel,omitempty"` +} From 3108196c1dde0093cef288bc0e07741d7dd8540f Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:18:27 +0800 Subject: [PATCH 139/255] feat: update --- client/model/getgameconcurrencyresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/getgameconcurrencyresult.go diff --git a/client/model/getgameconcurrencyresult.go b/client/model/getgameconcurrencyresult.go new file mode 100644 index 00000000..044aefc0 --- /dev/null +++ b/client/model/getgameconcurrencyresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type GetGameConcurrencyResult struct { + Success bool `json:"success,omitempty"` + Model GetGameConcurrencyResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From ceca435cb3f1320ac55beb1cca1ed7c9b301e0a8 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:18:28 +0800 Subject: [PATCH 140/255] feat: update --- client/model/getgameconcurrencyresultmodel.go | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 client/model/getgameconcurrencyresultmodel.go diff --git a/client/model/getgameconcurrencyresultmodel.go b/client/model/getgameconcurrencyresultmodel.go new file mode 100644 index 00000000..5bfdebff --- /dev/null +++ b/client/model/getgameconcurrencyresultmodel.go @@ -0,0 +1,28 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type GetGameConcurrencyResultModel struct { + // Paas平台游戏ID + GameId string `json:"gameId,omitempty"` + // 当前毫秒时间戳 + CurrentTime int64 `json:"currentTime,omitempty"` + // 当前游戏region维度游戏中人数统计 + PlayingRegionList []GetGameConcurrencyResultModelPlayingRegionList `json:"playingRegionList,omitempty"` + // 错误码 + Code string `json:"code,omitempty"` + // 当前游戏中人数 + PlayingTotal int64 `json:"playingTotal,omitempty"` + // 查询结果 + Success bool `json:"success,omitempty"` + // 当前排队人数 + QueuingTotal int64 `json:"queuingTotal,omitempty"` + // 错误信息 + Message string `json:"message,omitempty"` + // 游戏归属的项目Id + ProjectId string `json:"projectId,omitempty"` +} From b0cb9639fd456b1ad31ec14c1df1d30990cb3b25 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:18:29 +0800 Subject: [PATCH 141/255] feat: update --- ...tgameconcurrencyresultmodelplayingregionlist.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/getgameconcurrencyresultmodelplayingregionlist.go diff --git a/client/model/getgameconcurrencyresultmodelplayingregionlist.go b/client/model/getgameconcurrencyresultmodelplayingregionlist.go new file mode 100644 index 00000000..51187408 --- /dev/null +++ b/client/model/getgameconcurrencyresultmodelplayingregionlist.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type GetGameConcurrencyResultModelPlayingRegionList struct { + // 当前游戏指定region游戏中人数 + Ccu int64 `json:"ccu,omitempty"` + // 当前统计的regionId + RegionId string `json:"regionId,omitempty"` +} From 91828ed3d11e93ae2d787251b0ca3b7e703bdd63 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:18:30 +0800 Subject: [PATCH 142/255] feat: update --- client/model/getpairresult.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 client/model/getpairresult.go diff --git a/client/model/getpairresult.go b/client/model/getpairresult.go new file mode 100644 index 00000000..77f169ce --- /dev/null +++ b/client/model/getpairresult.go @@ -0,0 +1,20 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type GetPairResult struct { + // token失效时间戳,单位:秒 + Expired string `json:"expired,omitempty"` + // 返回码 + Code string `json:"code,omitempty"` + // 返回信息 + Message string `json:"message,omitempty"` + // 临时token + Token string `json:"token,omitempty"` + // 临时secretKey + AccessSecret string `json:"accessSecret,omitempty"` +} From 4e416c093cb9d3500611954624a0764666c66bf3 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:18:32 +0800 Subject: [PATCH 143/255] feat: update --- client/model/getstockforms.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 client/model/getstockforms.go diff --git a/client/model/getstockforms.go b/client/model/getstockforms.go new file mode 100644 index 00000000..85d8b26a --- /dev/null +++ b/client/model/getstockforms.go @@ -0,0 +1,16 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type GetStockForms struct { + // Paas平台部署的游戏Id + GameId *string `json:"gameId,omitempty"` + // 查询库存类型 + AppKey string `json:"appKey"` + // 通过接口获取的token + Type_ string `json:"type"` +} From 4f740ced4dcd49a3838d25f2bc05677b1e792621 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:18:33 +0800 Subject: [PATCH 144/255] feat: update --- client/model/getstockresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/getstockresult.go diff --git a/client/model/getstockresult.go b/client/model/getstockresult.go new file mode 100644 index 00000000..63c36d65 --- /dev/null +++ b/client/model/getstockresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type GetStockResult struct { + Success bool `json:"success,omitempty"` + Model GetStockResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From 56a8c1b25ca127226c95d1c57ccf0fc01ccc3616 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:18:34 +0800 Subject: [PATCH 145/255] feat: update --- client/model/getstockresultmodel.go | 31 +++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 client/model/getstockresultmodel.go diff --git a/client/model/getstockresultmodel.go b/client/model/getstockresultmodel.go new file mode 100644 index 00000000..4f8852a4 --- /dev/null +++ b/client/model/getstockresultmodel.go @@ -0,0 +1,31 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type GetStockResultModel struct { + // Paas平台游戏ID + GameId string `json:"gameId,omitempty"` + // 当前毫秒时间戳 + CurrentTime int64 `json:"currentTime,omitempty"` + // 返回码 + Code string `json:"code,omitempty"` + // 请求链路唯一标示 + RequestId string `json:"requestId,omitempty"` + // 调度执行结果 + Success bool `json:"success,omitempty"` + // 返回信息 + Message string `json:"message,omitempty"` + // 总路数 + QuotaTotal int32 `json:"quotaTotal,omitempty"` + // 已使用路数 + UsedTotal int32 `json:"usedTotal,omitempty"` + // 游戏归属的项目Id + ProjectId string `json:"projectId,omitempty"` + // 可用剩余路数 + AvailableTotal int32 `json:"availableTotal,omitempty"` + InstanceStockList []GetStockResultModelInstanceStockList `json:"instanceStockList,omitempty"` +} From d9d24d17e4ecc47ebec5f0f6c57ae1343a486e1c Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:18:35 +0800 Subject: [PATCH 146/255] feat: update --- .../getstockresultmodelinstancestocklist.go | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 client/model/getstockresultmodelinstancestocklist.go diff --git a/client/model/getstockresultmodelinstancestocklist.go b/client/model/getstockresultmodelinstancestocklist.go new file mode 100644 index 00000000..41563aa0 --- /dev/null +++ b/client/model/getstockresultmodelinstancestocklist.go @@ -0,0 +1,28 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type GetStockResultModelInstanceStockList struct { + // 实例id + InstanceId string `json:"instanceId,omitempty"` + // 实例游戏当前可使用路数 + InstanceGameAvailableTotal int32 `json:"instanceGameAvailableTotal,omitempty"` + // 实例总路数 + InstanceTotal int32 `json:"instanceTotal,omitempty"` + // 实例可用路数 + InstanceAvailableTotal int32 `json:"instanceAvailableTotal,omitempty"` + // 实例配置游戏总路数 + InstanceGameTotal int32 `json:"instanceGameTotal,omitempty"` + // 实例已用路数 + InstanceUsedTotal int32 `json:"instanceUsedTotal,omitempty"` + // 实例游戏当前已使用路数 + InstanceGameUsedTotal int32 `json:"instanceGameUsedTotal,omitempty"` + // 实例大区ID + InstanceRegionId string `json:"instanceRegionId,omitempty"` + // 实例调度等级 + InstanceUserLevel int32 `json:"instanceUserLevel,omitempty"` +} From 27849537811444f02493bcca159c7bb005d1e772 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:18:36 +0800 Subject: [PATCH 147/255] feat: update --- client/model/getstopgametokenforms.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/getstopgametokenforms.go diff --git a/client/model/getstopgametokenforms.go b/client/model/getstopgametokenforms.go new file mode 100644 index 00000000..6eb93c16 --- /dev/null +++ b/client/model/getstopgametokenforms.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type GetStopGameTokenForms struct { + // Paas平台部署的游戏Id + GameId string `json:"gameId"` + // Paas平台AK(应用的AK,非服务端AK) + AppKey string `json:"appKey"` +} From 2957b94e428851e7a3041d1e94838b5da228bb04 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:18:38 +0800 Subject: [PATCH 148/255] feat: update --- client/model/getstopgametokenresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/getstopgametokenresult.go diff --git a/client/model/getstopgametokenresult.go b/client/model/getstopgametokenresult.go new file mode 100644 index 00000000..8f58692f --- /dev/null +++ b/client/model/getstopgametokenresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type GetStopGameTokenResult struct { + Success bool `json:"success,omitempty"` + Model GetStopGameTokenResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From 151320feb639158fb94f631265a937832b131566 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:18:39 +0800 Subject: [PATCH 149/255] feat: update --- client/model/getstopgametokenresultmodel.go | 22 +++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 client/model/getstopgametokenresultmodel.go diff --git a/client/model/getstopgametokenresultmodel.go b/client/model/getstopgametokenresultmodel.go new file mode 100644 index 00000000..8b01fc97 --- /dev/null +++ b/client/model/getstopgametokenresultmodel.go @@ -0,0 +1,22 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type GetStopGameTokenResultModel struct { + // 当前token失效时间 + ExpireTime int64 `json:"expireTime,omitempty"` + // 返回码 + Code string `json:"code,omitempty"` + // 请求链路唯一标示 + RequestId string `json:"requestId,omitempty"` + // 调度执行结果 + Success bool `json:"success,omitempty"` + // 返回信息 + Message string `json:"message,omitempty"` + // token + Token string `json:"token,omitempty"` +} From a14fbf1998316d0a57713f3b0bac2d31e4fe300c Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:18:40 +0800 Subject: [PATCH 150/255] feat: update --- client/model/gettripleresult.go | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 client/model/gettripleresult.go diff --git a/client/model/gettripleresult.go b/client/model/gettripleresult.go new file mode 100644 index 00000000..fe27752a --- /dev/null +++ b/client/model/gettripleresult.go @@ -0,0 +1,22 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type GetTripleResult struct { + // token失效时间戳,单位:秒 + Expired string `json:"expired,omitempty"` + // 返回码 + Code string `json:"code,omitempty"` + // 临时accessKey + AccessKey string `json:"accessKey,omitempty"` + // 返回信息 + Message string `json:"message,omitempty"` + // 临时token + Token string `json:"token,omitempty"` + // 临时secretKey + AccessSecret string `json:"accessSecret,omitempty"` +} From c0573bb9b73d3caa82318ffff8554280eea871f3 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:18:41 +0800 Subject: [PATCH 151/255] feat: update --- client/model/listgameserveripforms.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/listgameserveripforms.go diff --git a/client/model/listgameserveripforms.go b/client/model/listgameserveripforms.go new file mode 100644 index 00000000..765d824e --- /dev/null +++ b/client/model/listgameserveripforms.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ListGameServerIpForms struct { + // 分页大小,默认100 + PageSize *int64 `json:"pageSize,omitempty"` + // 分页标识 + NextToken *string `json:"nextToken,omitempty"` +} From 0e270e845e5412411ed3c39c4fc8da33dd6b6e9a Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:18:42 +0800 Subject: [PATCH 152/255] feat: update --- client/model/listgameserveripresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/listgameserveripresult.go diff --git a/client/model/listgameserveripresult.go b/client/model/listgameserveripresult.go new file mode 100644 index 00000000..4cbde664 --- /dev/null +++ b/client/model/listgameserveripresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ListGameServerIpResult struct { + Success bool `json:"success,omitempty"` + Model ListGameServerIpResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From a482ea42fa063ce2e851ab296835c60f85a3bc5e Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:18:43 +0800 Subject: [PATCH 153/255] feat: update --- client/model/listgameserveripresultmodel.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/listgameserveripresultmodel.go diff --git a/client/model/listgameserveripresultmodel.go b/client/model/listgameserveripresultmodel.go new file mode 100644 index 00000000..060fac50 --- /dev/null +++ b/client/model/listgameserveripresultmodel.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ListGameServerIpResultModel struct { + NextToken string `json:"nextToken,omitempty"` + PageSize int64 `json:"pageSize,omitempty"` + TotalCount int64 `json:"totalCount,omitempty"` + IpList []string `json:"ipList,omitempty"` +} From 57cccf2a862bfa10f3b9feff9dc89485921b0a3b Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:18:44 +0800 Subject: [PATCH 154/255] feat: update --- client/model/livequerystatusforms.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 client/model/livequerystatusforms.go diff --git a/client/model/livequerystatusforms.go b/client/model/livequerystatusforms.go new file mode 100644 index 00000000..234f582a --- /dev/null +++ b/client/model/livequerystatusforms.go @@ -0,0 +1,13 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type LiveQueryStatusForms struct { + AppKey string `json:"appKey"` + GameSession string `json:"gameSession"` + LiveId *string `json:"liveId,omitempty"` +} From f394abee8ef191bb6e064022ea43aaa29e69707a Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:18:46 +0800 Subject: [PATCH 155/255] feat: update --- client/model/livequerystatusresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/livequerystatusresult.go diff --git a/client/model/livequerystatusresult.go b/client/model/livequerystatusresult.go new file mode 100644 index 00000000..fbce0d3d --- /dev/null +++ b/client/model/livequerystatusresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type LiveQueryStatusResult struct { + Success bool `json:"success,omitempty"` + Model LiveQueryStatusResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From bb4ec486b1ffe56848750ab95704769ab9d304f3 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:18:47 +0800 Subject: [PATCH 156/255] feat: update --- client/model/livequerystatusresultmodel.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 client/model/livequerystatusresultmodel.go diff --git a/client/model/livequerystatusresultmodel.go b/client/model/livequerystatusresultmodel.go new file mode 100644 index 00000000..6fe0b0c5 --- /dev/null +++ b/client/model/livequerystatusresultmodel.go @@ -0,0 +1,11 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type LiveQueryStatusResultModel struct { + LiveList []LiveQueryStatusResultModelLiveList `json:"liveList,omitempty"` +} From 312d4792a5b06ab156cceacf16f690efccbf48ea Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:18:48 +0800 Subject: [PATCH 157/255] feat: update --- .../model/livequerystatusresultmodellivelist.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 client/model/livequerystatusresultmodellivelist.go diff --git a/client/model/livequerystatusresultmodellivelist.go b/client/model/livequerystatusresultmodellivelist.go new file mode 100644 index 00000000..67d6c4a6 --- /dev/null +++ b/client/model/livequerystatusresultmodellivelist.go @@ -0,0 +1,16 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type LiveQueryStatusResultModelLiveList struct { + StreamKey string `json:"streamKey,omitempty"` + ServerUrl string `json:"serverUrl,omitempty"` + Message string `json:"message,omitempty"` + LiveId string `json:"liveId,omitempty"` + Config LiveQueryStatusResultModelLiveListConfig `json:"config,omitempty"` + Status string `json:"status,omitempty"` +} From 29ba7ef56b97b58ade3a62d8c0c4e6207d4b0362 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:18:49 +0800 Subject: [PATCH 158/255] feat: update --- .../livequerystatusresultmodellivelistconfig.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 client/model/livequerystatusresultmodellivelistconfig.go diff --git a/client/model/livequerystatusresultmodellivelistconfig.go b/client/model/livequerystatusresultmodellivelistconfig.go new file mode 100644 index 00000000..39a7f7a2 --- /dev/null +++ b/client/model/livequerystatusresultmodellivelistconfig.go @@ -0,0 +1,13 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type LiveQueryStatusResultModelLiveListConfig struct { + FrameRate int32 `json:"frameRate,omitempty"` + Bitrate int32 `json:"bitrate,omitempty"` + Resolution string `json:"resolution,omitempty"` +} From a4a9aab7382dec1eac85daf8006fd8b6f097afd6 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:18:50 +0800 Subject: [PATCH 159/255] feat: update --- client/model/livestartgameliveforms.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 client/model/livestartgameliveforms.go diff --git a/client/model/livestartgameliveforms.go b/client/model/livestartgameliveforms.go new file mode 100644 index 00000000..7490f760 --- /dev/null +++ b/client/model/livestartgameliveforms.go @@ -0,0 +1,15 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type LiveStartGameLiveForms struct { + AppKey string `json:"appKey"` + GameSession string `json:"gameSession"` + ServerUrl string `json:"serverUrl"` + StreamKey string `json:"streamKey"` + Config *LiveStartGameLiveFormsConfig `json:"config,omitempty"` +} From 78611b2323704cb9fddf9583bbd0c5bf6e076d1b Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:18:52 +0800 Subject: [PATCH 160/255] feat: update --- client/model/livestartgameliveformsconfig.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 client/model/livestartgameliveformsconfig.go diff --git a/client/model/livestartgameliveformsconfig.go b/client/model/livestartgameliveformsconfig.go new file mode 100644 index 00000000..407ea555 --- /dev/null +++ b/client/model/livestartgameliveformsconfig.go @@ -0,0 +1,13 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type LiveStartGameLiveFormsConfig struct { + FrameRate *int32 `json:"frameRate,omitempty"` + Bitrate *int32 `json:"bitrate,omitempty"` + Resolution *string `json:"resolution,omitempty"` +} From cd178570cc30ee19d1589893afff61ecd8f3447c Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:18:53 +0800 Subject: [PATCH 161/255] feat: update --- client/model/livestartgameliveresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/livestartgameliveresult.go diff --git a/client/model/livestartgameliveresult.go b/client/model/livestartgameliveresult.go new file mode 100644 index 00000000..7445bc92 --- /dev/null +++ b/client/model/livestartgameliveresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type LiveStartGameLiveResult struct { + Success bool `json:"success,omitempty"` + Model LiveStartGameLiveResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From 61a8c5a6b5552431e2b37185c8fdb602939e13d0 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:18:54 +0800 Subject: [PATCH 162/255] feat: update --- client/model/livestartgameliveresultmodel.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 client/model/livestartgameliveresultmodel.go diff --git a/client/model/livestartgameliveresultmodel.go b/client/model/livestartgameliveresultmodel.go new file mode 100644 index 00000000..5976b23e --- /dev/null +++ b/client/model/livestartgameliveresultmodel.go @@ -0,0 +1,13 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type LiveStartGameLiveResultModel struct { + Data bool `json:"data,omitempty"` + LiveId string `json:"liveId,omitempty"` + Status string `json:"status,omitempty"` +} From 9875f86b1c8ce00a69b450288a171d4aa8b90627 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:18:55 +0800 Subject: [PATCH 163/255] feat: update --- client/model/livestopgameliveforms.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 client/model/livestopgameliveforms.go diff --git a/client/model/livestopgameliveforms.go b/client/model/livestopgameliveforms.go new file mode 100644 index 00000000..6e8cf3b6 --- /dev/null +++ b/client/model/livestopgameliveforms.go @@ -0,0 +1,13 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type LiveStopGameLiveForms struct { + AppKey string `json:"appKey"` + GameSession string `json:"gameSession"` + LiveId *string `json:"liveId,omitempty"` +} From d9258139bbf164fec000ba0487ac9877fbe7ee42 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:18:56 +0800 Subject: [PATCH 164/255] feat: update --- client/model/livestopgameliveresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/livestopgameliveresult.go diff --git a/client/model/livestopgameliveresult.go b/client/model/livestopgameliveresult.go new file mode 100644 index 00000000..72627a14 --- /dev/null +++ b/client/model/livestopgameliveresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type LiveStopGameLiveResult struct { + Success bool `json:"success,omitempty"` + Model LiveStopGameLiveResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From 81440df854018303a475bee8c1c24f102439f325 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:18:57 +0800 Subject: [PATCH 165/255] feat: update --- client/model/livestopgameliveresultmodel.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 client/model/livestopgameliveresultmodel.go diff --git a/client/model/livestopgameliveresultmodel.go b/client/model/livestopgameliveresultmodel.go new file mode 100644 index 00000000..d93d1428 --- /dev/null +++ b/client/model/livestopgameliveresultmodel.go @@ -0,0 +1,11 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type LiveStopGameLiveResultModel struct { + Data bool `json:"data,omitempty"` +} From f9935f6ea5606b51c9914c75b192f184047a01b3 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:18:59 +0800 Subject: [PATCH 166/255] feat: update --- client/model/multiplaycloseforms.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 client/model/multiplaycloseforms.go diff --git a/client/model/multiplaycloseforms.go b/client/model/multiplaycloseforms.go new file mode 100644 index 00000000..71e54c02 --- /dev/null +++ b/client/model/multiplaycloseforms.go @@ -0,0 +1,12 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type MultiplayCloseForms struct { + MpId string `json:"mpId"` + Reason *string `json:"reason,omitempty"` +} From 2bbbecf31f5e9ad6d2bcfe8582b29d1f4a16d0f2 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:19:00 +0800 Subject: [PATCH 167/255] feat: update --- client/model/multiplaycloseresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/multiplaycloseresult.go diff --git a/client/model/multiplaycloseresult.go b/client/model/multiplaycloseresult.go new file mode 100644 index 00000000..b76a2cef --- /dev/null +++ b/client/model/multiplaycloseresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type MultiplayCloseResult struct { + Success bool `json:"success,omitempty"` + Model MultiplayCloseResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From 8cbd911a155cfc7fc1f09dde888b92fdb77869d7 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:19:01 +0800 Subject: [PATCH 168/255] feat: update --- client/model/multiplaycloseresultmodel.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 client/model/multiplaycloseresultmodel.go diff --git a/client/model/multiplaycloseresultmodel.go b/client/model/multiplaycloseresultmodel.go new file mode 100644 index 00000000..cae9686b --- /dev/null +++ b/client/model/multiplaycloseresultmodel.go @@ -0,0 +1,11 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type MultiplayCloseResultModel struct { + DataVer string `json:"dataVer,omitempty"` +} From 9c76e514b4915484c7b41d4c5a9aec98442a22ae Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:19:02 +0800 Subject: [PATCH 169/255] feat: update --- client/model/multiplayinitforms.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/multiplayinitforms.go diff --git a/client/model/multiplayinitforms.go b/client/model/multiplayinitforms.go new file mode 100644 index 00000000..5b669a6c --- /dev/null +++ b/client/model/multiplayinitforms.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type MultiplayInitForms struct { + GameSession string `json:"gameSession"` + AppKey string `json:"appKey"` + Config *MultiplayInitFormsConfig `json:"config,omitempty"` + Tokens *[]MultiplayInitFormsTokens `json:"tokens,omitempty"` +} From c84b9c5719ac08adcecbe17913bfc1479d639d6b Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:19:03 +0800 Subject: [PATCH 170/255] feat: update --- client/model/multiplayinitformsconfig.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/multiplayinitformsconfig.go diff --git a/client/model/multiplayinitformsconfig.go b/client/model/multiplayinitformsconfig.go new file mode 100644 index 00000000..9406dd00 --- /dev/null +++ b/client/model/multiplayinitformsconfig.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type MultiplayInitFormsConfig struct { + MaxToken *int32 `json:"maxToken,omitempty"` + HostTimeout *int32 `json:"hostTimeout,omitempty"` + ConnectTimeout *int32 `json:"connectTimeout,omitempty"` + InputTimeout *int32 `json:"inputTimeout,omitempty"` +} From 7cae76913db5dced6b22517d6bfa0f6c229259b9 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:19:04 +0800 Subject: [PATCH 171/255] feat: update --- client/model/multiplayinitformstokens.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 client/model/multiplayinitformstokens.go diff --git a/client/model/multiplayinitformstokens.go b/client/model/multiplayinitformstokens.go new file mode 100644 index 00000000..6f9cfc2d --- /dev/null +++ b/client/model/multiplayinitformstokens.go @@ -0,0 +1,12 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type MultiplayInitFormsTokens struct { + AccountId string `json:"accountId,omitempty"` + ControlId int32 `json:"controlId,omitempty"` +} From 9fbf8726634e92cfcd688ec37d9d57a100831dfc Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:19:06 +0800 Subject: [PATCH 172/255] feat: update --- client/model/multiplayinitresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/multiplayinitresult.go diff --git a/client/model/multiplayinitresult.go b/client/model/multiplayinitresult.go new file mode 100644 index 00000000..500f573e --- /dev/null +++ b/client/model/multiplayinitresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type MultiplayInitResult struct { + Success bool `json:"success,omitempty"` + Model MultiplayInitResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From 10076898c9e630c427e9dde86c84fbfebe2ced26 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:19:07 +0800 Subject: [PATCH 173/255] feat: update --- client/model/multiplayinitresultmodel.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/multiplayinitresultmodel.go diff --git a/client/model/multiplayinitresultmodel.go b/client/model/multiplayinitresultmodel.go new file mode 100644 index 00000000..1a5dad7c --- /dev/null +++ b/client/model/multiplayinitresultmodel.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type MultiplayInitResultModel struct { + CreatorTokenId string `json:"creatorTokenId,omitempty"` + Tokens []MultiplayInitResultModelTokens `json:"tokens,omitempty"` + DataVer string `json:"dataVer,omitempty"` + MpId string `json:"mpId,omitempty"` +} From 90ca2318e52d48247fbe410bb8469a446dbccf92 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:19:08 +0800 Subject: [PATCH 174/255] feat: update --- client/model/multiplayinitresultmodeltokens.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/multiplayinitresultmodeltokens.go diff --git a/client/model/multiplayinitresultmodeltokens.go b/client/model/multiplayinitresultmodeltokens.go new file mode 100644 index 00000000..d14e09ba --- /dev/null +++ b/client/model/multiplayinitresultmodeltokens.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type MultiplayInitResultModelTokens struct { + AccountId string `json:"accountId,omitempty"` + TokenId string `json:"tokenId,omitempty"` + Session string `json:"session,omitempty"` + ControlId int32 `json:"controlId,omitempty"` +} From da4c08356ef876fb14b812c7bc20646b24ee5382 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:19:09 +0800 Subject: [PATCH 175/255] feat: update --- client/model/multiplayjoinforms.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 client/model/multiplayjoinforms.go diff --git a/client/model/multiplayjoinforms.go b/client/model/multiplayjoinforms.go new file mode 100644 index 00000000..7633e12d --- /dev/null +++ b/client/model/multiplayjoinforms.go @@ -0,0 +1,13 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type MultiplayJoinForms struct { + MpId string `json:"mpId"` + AccountId string `json:"accountId"` + ControlId *int32 `json:"controlId,omitempty"` +} From 06936c97b45735d17dd2cb253aff4d4499ef224a Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:19:10 +0800 Subject: [PATCH 176/255] feat: update --- client/model/multiplayjoinresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/multiplayjoinresult.go diff --git a/client/model/multiplayjoinresult.go b/client/model/multiplayjoinresult.go new file mode 100644 index 00000000..2c5637eb --- /dev/null +++ b/client/model/multiplayjoinresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type MultiplayJoinResult struct { + Success bool `json:"success,omitempty"` + Model MultiplayJoinResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From cc9e80d040ec7acb68cdb8b8c4a05e6ac1f88b77 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:19:11 +0800 Subject: [PATCH 177/255] feat: update --- client/model/multiplayjoinresultmodel.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 client/model/multiplayjoinresultmodel.go diff --git a/client/model/multiplayjoinresultmodel.go b/client/model/multiplayjoinresultmodel.go new file mode 100644 index 00000000..2753bb19 --- /dev/null +++ b/client/model/multiplayjoinresultmodel.go @@ -0,0 +1,13 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type MultiplayJoinResultModel struct { + TokenId string `json:"tokenId,omitempty"` + Session string `json:"session,omitempty"` + DataVer string `json:"dataVer,omitempty"` +} From df0ce0b96a9851c9c74f2420b4b4e322d2086b74 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:19:13 +0800 Subject: [PATCH 178/255] feat: update --- client/model/multiplayleaveforms.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/multiplayleaveforms.go diff --git a/client/model/multiplayleaveforms.go b/client/model/multiplayleaveforms.go new file mode 100644 index 00000000..981f6ca5 --- /dev/null +++ b/client/model/multiplayleaveforms.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type MultiplayLeaveForms struct { + MpId string `json:"mpId"` + KickOut bool `json:"kickOut"` + Reason *string `json:"reason,omitempty"` + TokenIds []string `json:"tokenIds"` +} From e00ce10ca9264ab3a80cf5bd84be5da706e86397 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:19:14 +0800 Subject: [PATCH 179/255] feat: update --- client/model/multiplayleaveresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/multiplayleaveresult.go diff --git a/client/model/multiplayleaveresult.go b/client/model/multiplayleaveresult.go new file mode 100644 index 00000000..fbafca95 --- /dev/null +++ b/client/model/multiplayleaveresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type MultiplayLeaveResult struct { + Success bool `json:"success,omitempty"` + Model MultiplayLeaveResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From b6e82d1cd1abd962bc322425516c2cf58b06db81 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:19:15 +0800 Subject: [PATCH 180/255] feat: update --- client/model/multiplayleaveresultmodel.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 client/model/multiplayleaveresultmodel.go diff --git a/client/model/multiplayleaveresultmodel.go b/client/model/multiplayleaveresultmodel.go new file mode 100644 index 00000000..5f352af1 --- /dev/null +++ b/client/model/multiplayleaveresultmodel.go @@ -0,0 +1,11 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type MultiplayLeaveResultModel struct { + DataVer string `json:"dataVer,omitempty"` +} From 3bb0cfadd4cb31a6f8d163abc4a00a06f42723ca Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:19:16 +0800 Subject: [PATCH 181/255] feat: update --- client/model/multiplaymodifyforms.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 client/model/multiplaymodifyforms.go diff --git a/client/model/multiplaymodifyforms.go b/client/model/multiplaymodifyforms.go new file mode 100644 index 00000000..3566aff0 --- /dev/null +++ b/client/model/multiplaymodifyforms.go @@ -0,0 +1,12 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type MultiplayModifyForms struct { + MpId string `json:"mpId"` + Tokens *[]MultiplayModifyFormsTokens `json:"tokens,omitempty"` +} From 52499f55a5777e3bc8bf1e4a597296eb2e694701 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:19:18 +0800 Subject: [PATCH 182/255] feat: update --- client/model/multiplaymodifyformstokens.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 client/model/multiplaymodifyformstokens.go diff --git a/client/model/multiplaymodifyformstokens.go b/client/model/multiplaymodifyformstokens.go new file mode 100644 index 00000000..707acb4e --- /dev/null +++ b/client/model/multiplaymodifyformstokens.go @@ -0,0 +1,12 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type MultiplayModifyFormsTokens struct { + TokenId string `json:"tokenId,omitempty"` + ControlId int32 `json:"controlId,omitempty"` +} From fc6c43974c824af13a33ca566a75f3c33023bb3e Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:19:19 +0800 Subject: [PATCH 183/255] feat: update --- client/model/multiplaymodifyresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/multiplaymodifyresult.go diff --git a/client/model/multiplaymodifyresult.go b/client/model/multiplaymodifyresult.go new file mode 100644 index 00000000..d315de1a --- /dev/null +++ b/client/model/multiplaymodifyresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type MultiplayModifyResult struct { + Success bool `json:"success,omitempty"` + Model MultiplayModifyResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From 9e7c0655243fca3bd54cd134a536b4028864a1de Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:19:20 +0800 Subject: [PATCH 184/255] feat: update --- client/model/multiplaymodifyresultmodel.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 client/model/multiplaymodifyresultmodel.go diff --git a/client/model/multiplaymodifyresultmodel.go b/client/model/multiplaymodifyresultmodel.go new file mode 100644 index 00000000..03c615fe --- /dev/null +++ b/client/model/multiplaymodifyresultmodel.go @@ -0,0 +1,11 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type MultiplayModifyResultModel struct { + DataVer string `json:"dataVer,omitempty"` +} From ecf7ddf6252b5b0f3c0e63edbfbeb00d492dd971 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:19:21 +0800 Subject: [PATCH 185/255] feat: update --- client/model/multiplayqueryforms.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 client/model/multiplayqueryforms.go diff --git a/client/model/multiplayqueryforms.go b/client/model/multiplayqueryforms.go new file mode 100644 index 00000000..6348cb3a --- /dev/null +++ b/client/model/multiplayqueryforms.go @@ -0,0 +1,11 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type MultiplayQueryForms struct { + MpId string `json:"mpId"` +} From 21a1db35c3990b99b7014e08f0d27b3960226e3f Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:19:22 +0800 Subject: [PATCH 186/255] feat: update --- client/model/multiplayqueryresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/multiplayqueryresult.go diff --git a/client/model/multiplayqueryresult.go b/client/model/multiplayqueryresult.go new file mode 100644 index 00000000..a0a4be86 --- /dev/null +++ b/client/model/multiplayqueryresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type MultiplayQueryResult struct { + Success bool `json:"success,omitempty"` + Model MultiplayQueryResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From c6bb19e21b980da8d87d67177f4f60086761ba7a Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:19:23 +0800 Subject: [PATCH 187/255] feat: update --- client/model/multiplayqueryresultmodel.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 client/model/multiplayqueryresultmodel.go diff --git a/client/model/multiplayqueryresultmodel.go b/client/model/multiplayqueryresultmodel.go new file mode 100644 index 00000000..4298cfed --- /dev/null +++ b/client/model/multiplayqueryresultmodel.go @@ -0,0 +1,16 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type MultiplayQueryResultModel struct { + CreatorTokenId string `json:"creatorTokenId,omitempty"` + EndTs int64 `json:"endTs,omitempty"` + Tokens []MultiplayQueryResultModelTokens `json:"tokens,omitempty"` + DataVer string `json:"dataVer,omitempty"` + MpId string `json:"mpId,omitempty"` + Config MultiplayQueryResultModelConfig `json:"config,omitempty"` +} From 9df94aab4ce2caf6588cf052bf0979759108428c Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:19:24 +0800 Subject: [PATCH 188/255] feat: update --- client/model/multiplayqueryresultmodelconfig.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/multiplayqueryresultmodelconfig.go diff --git a/client/model/multiplayqueryresultmodelconfig.go b/client/model/multiplayqueryresultmodelconfig.go new file mode 100644 index 00000000..a28cc655 --- /dev/null +++ b/client/model/multiplayqueryresultmodelconfig.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type MultiplayQueryResultModelConfig struct { + MaxToken int32 `json:"maxToken,omitempty"` + HostTimeout int32 `json:"hostTimeout,omitempty"` + ConnectTimeout int32 `json:"connectTimeout,omitempty"` + InputTimeout int32 `json:"inputTimeout,omitempty"` +} From 6edcaf5c386e4847410f3f241cb48d7c3091a347 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:19:26 +0800 Subject: [PATCH 189/255] feat: update --- client/model/multiplayqueryresultmodeltokens.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/multiplayqueryresultmodeltokens.go diff --git a/client/model/multiplayqueryresultmodeltokens.go b/client/model/multiplayqueryresultmodeltokens.go new file mode 100644 index 00000000..8569dd98 --- /dev/null +++ b/client/model/multiplayqueryresultmodeltokens.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type MultiplayQueryResultModelTokens struct { + AccountId string `json:"accountId,omitempty"` + TokenId string `json:"tokenId,omitempty"` + Session string `json:"session,omitempty"` + ControlId int32 `json:"controlId,omitempty"` +} From 259c03b668eb725aff40415c81880b330df875f5 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:19:27 +0800 Subject: [PATCH 190/255] feat: update --- client/model/querygamehangforms.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/querygamehangforms.go diff --git a/client/model/querygamehangforms.go b/client/model/querygamehangforms.go new file mode 100644 index 00000000..a6967fb5 --- /dev/null +++ b/client/model/querygamehangforms.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type QueryGameHangForms struct { + // 会话ID + GameSession string `json:"gameSession"` + // 项目应用AK + AppKey string `json:"appKey"` +} From e6fd2322a415fd46cc342ace8fd3da9de9307619 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:19:28 +0800 Subject: [PATCH 191/255] feat: update --- client/model/querygamehangresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/querygamehangresult.go diff --git a/client/model/querygamehangresult.go b/client/model/querygamehangresult.go new file mode 100644 index 00000000..c44c151d --- /dev/null +++ b/client/model/querygamehangresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type QueryGameHangResult struct { + Success bool `json:"success,omitempty"` + Model QueryGameHangResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From d07d9dd9089d754ed4a45e6ef4c98b33ef1217a0 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:19:29 +0800 Subject: [PATCH 192/255] feat: update --- client/model/querygamehangresultmodel.go | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 client/model/querygamehangresultmodel.go diff --git a/client/model/querygamehangresultmodel.go b/client/model/querygamehangresultmodel.go new file mode 100644 index 00000000..6d268bd2 --- /dev/null +++ b/client/model/querygamehangresultmodel.go @@ -0,0 +1,24 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type QueryGameHangResultModel struct { + // 挂机时长 + Duration int64 `json:"duration,omitempty"` + // 错误Code + Code string `json:"code,omitempty"` + // 开始挂机毫秒时间戳 + StartHangTimestamp int64 `json:"startHangTimestamp,omitempty"` + // 设置是否成功 + Success bool `json:"success,omitempty"` + // 错误Message + Message string `json:"message,omitempty"` + // 会话ID是否在挂机中 + Hanging bool `json:"hanging,omitempty"` + // 会话ID + GameSession string `json:"gameSession,omitempty"` +} From 905a08669264539a302c938d9b9af5b42f703968 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:19:31 +0800 Subject: [PATCH 193/255] feat: update --- client/model/querysessionstatusforms.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/querysessionstatusforms.go diff --git a/client/model/querysessionstatusforms.go b/client/model/querysessionstatusforms.go new file mode 100644 index 00000000..2f3f0fd9 --- /dev/null +++ b/client/model/querysessionstatusforms.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type QuerySessionStatusForms struct { + // 会话ID + GameSession string `json:"gameSession"` + // 项目应用AK + AppKey string `json:"appKey"` +} From 916a184407f869caa881ae3d06545e133456ac5b Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:19:32 +0800 Subject: [PATCH 194/255] feat: update --- client/model/querysessionstatusresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/querysessionstatusresult.go diff --git a/client/model/querysessionstatusresult.go b/client/model/querysessionstatusresult.go new file mode 100644 index 00000000..b08e6038 --- /dev/null +++ b/client/model/querysessionstatusresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type QuerySessionStatusResult struct { + Success bool `json:"success,omitempty"` + Model QuerySessionStatusResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From c4e662d2ebe45f97b20515ef2ccc36b5fcc3b2f2 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:19:33 +0800 Subject: [PATCH 195/255] feat: update --- client/model/querysessionstatusresultmodel.go | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 client/model/querysessionstatusresultmodel.go diff --git a/client/model/querysessionstatusresultmodel.go b/client/model/querysessionstatusresultmodel.go new file mode 100644 index 00000000..66d557cb --- /dev/null +++ b/client/model/querysessionstatusresultmodel.go @@ -0,0 +1,38 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type QuerySessionStatusResultModel struct { + // 会话归属的游戏ID + GameId string `json:"gameId,omitempty"` + // 返回码 + Code string `json:"code,omitempty"` + // 返回信息 + Message string `json:"message,omitempty"` + // 会话所属用户ID + AccountId string `json:"accountId,omitempty"` + // 会话调度毫秒时间戳 + DispatchTime int64 `json:"dispatchTime,omitempty"` + // 会话调度用户等级 + UserLevel int32 `json:"userLevel,omitempty"` + // 会话调度大区ID + RegionId string `json:"regionId,omitempty"` + // 是否成功 + Success bool `json:"success,omitempty"` + // 会话归属的租户ID + TenantId int64 `json:"tenantId,omitempty"` + // 会话停止毫秒时间戳 + StopTime int64 `json:"stopTime,omitempty"` + // 用户开始游戏毫秒时间戳 + PlayTime int64 `json:"playTime,omitempty"` + // 会话归属的项目ID + ProjectId string `json:"projectId,omitempty"` + // 会话ID + GameSession string `json:"gameSession,omitempty"` + // 会话当前状态:STARTED: 运行中,STOPPED: 已停止 + Status string `json:"status,omitempty"` +} From 2ee931a07b4873481afb167fa2adb4114f159770 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:19:34 +0800 Subject: [PATCH 196/255] feat: update --- client/model/replaceslotforms.go | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 client/model/replaceslotforms.go diff --git a/client/model/replaceslotforms.go b/client/model/replaceslotforms.go new file mode 100644 index 00000000..a7fc9ebc --- /dev/null +++ b/client/model/replaceslotforms.go @@ -0,0 +1,24 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ReplaceSlotForms struct { + ReplaceSession string `json:"replaceSession"` + AccountId string `json:"accountId"` + GameId string `json:"gameId"` + AppKey string `json:"appKey"` + BizParam *string `json:"bizParam,omitempty"` + ClientIp *string `json:"clientIp,omitempty"` + Tags *string `json:"tags,omitempty"` + Codec *int32 `json:"codec,omitempty"` + Resolution *int32 `json:"resolution,omitempty"` + BitRate *int32 `json:"bitRate,omitempty"` + Fps *int32 `json:"fps,omitempty"` + GameCmdParam *string `json:"gameCmdParam,omitempty"` + UserLevel *int32 `json:"userLevel,omitempty"` + StartParam *ReplaceSlotFormsStartParam `json:"startParam,omitempty"` +} From fbc7bac0c6f2045da5cc4d4b74fc7831e40af7f9 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:19:35 +0800 Subject: [PATCH 197/255] feat: update --- client/model/replaceslotformsstartparam.go | Bin 0 -> 1278 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 client/model/replaceslotformsstartparam.go diff --git a/client/model/replaceslotformsstartparam.go b/client/model/replaceslotformsstartparam.go new file mode 100644 index 0000000000000000000000000000000000000000..12dfefb7de23d77be5fa6b2900dd80fc70c166da GIT binary patch literal 1278 zcmZ{k%TB{E5Jg$%E37Unq)NON>_Q_-s0vXdkl58Y)7I3nE!(LSA^shwc@#2ol+|1x zkMCS3vl+=KJJ1~vCOAkJ&888Vl8=hYXD)Z-RfCMPl;p{hY?UDk<>mIBMY=;vRe*>h zS8E_^(1J3^g>sL|ls0$NxQrTF66;LG9Qlrjf0h6`7W@cg%B8!zA)7C&`JPR-#ug!RG&ViGuV25YcNRE{e-MvIXi*dWpTbj<6kzGn;i zIwE4j_TJW;5#wfbP!P1BC8SbU$lI#n zAR_dEyES!?gV@Fe)$PsnpTYTlec}~pmu99fDigF0P4$n8=-g6{0<=vLE$#AN6}N%F py@H^;wrvP_IQA?dtYucsA7$LE{pLo(JxJ2xBmbD literal 0 HcmV?d00001 From 8c4e105764c4798add5047462c4c1070cfa69181 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:19:37 +0800 Subject: [PATCH 198/255] feat: update --- client/model/replaceslotresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/replaceslotresult.go diff --git a/client/model/replaceslotresult.go b/client/model/replaceslotresult.go new file mode 100644 index 00000000..c319651f --- /dev/null +++ b/client/model/replaceslotresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ReplaceSlotResult struct { + Success bool `json:"success,omitempty"` + Model ReplaceSlotResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From 18a39260652cecda2bfdcf505bd9fe2548d7bb8a Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:19:39 +0800 Subject: [PATCH 199/255] feat: update --- client/model/replaceslotresultmodel.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 client/model/replaceslotresultmodel.go diff --git a/client/model/replaceslotresultmodel.go b/client/model/replaceslotresultmodel.go new file mode 100644 index 00000000..82997087 --- /dev/null +++ b/client/model/replaceslotresultmodel.go @@ -0,0 +1,17 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ReplaceSlotResultModel struct { + GameId string `json:"gameId,omitempty"` + AccountId string `json:"accountId,omitempty"` + Code string `json:"code,omitempty"` + RegionId string `json:"regionId,omitempty"` + Success bool `json:"success,omitempty"` + Message string `json:"message,omitempty"` + GameSession string `json:"gameSession,omitempty"` +} From 30529ff07b6d7c8c3cdf53d22aff1fd1e5c0538d Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:19:40 +0800 Subject: [PATCH 200/255] feat: update --- client/model/setgamealiveforms.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 client/model/setgamealiveforms.go diff --git a/client/model/setgamealiveforms.go b/client/model/setgamealiveforms.go new file mode 100644 index 00000000..cacd00fd --- /dev/null +++ b/client/model/setgamealiveforms.go @@ -0,0 +1,16 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type SetGameAliveForms struct { + // 会话ID + GameSession string `json:"gameSession"` + // 项目应用AK + AppKey string `json:"appKey"` + // 游戏可运行时长 + KeepAlive int64 `json:"keepAlive"` +} From 84c6ce3cce6bed2d80e5f72d9be5c70e9962cc73 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:19:41 +0800 Subject: [PATCH 201/255] feat: update --- client/model/setgamealiveresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/setgamealiveresult.go diff --git a/client/model/setgamealiveresult.go b/client/model/setgamealiveresult.go new file mode 100644 index 00000000..6e649f1d --- /dev/null +++ b/client/model/setgamealiveresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type SetGameAliveResult struct { + Success bool `json:"success,omitempty"` + Model SetGameAliveResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From 5773c2064f51b44c9bc1d1b54bd719fd102aab5e Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:19:43 +0800 Subject: [PATCH 202/255] feat: update --- client/model/setgamealiveresultmodel.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 client/model/setgamealiveresultmodel.go diff --git a/client/model/setgamealiveresultmodel.go b/client/model/setgamealiveresultmodel.go new file mode 100644 index 00000000..d00708bf --- /dev/null +++ b/client/model/setgamealiveresultmodel.go @@ -0,0 +1,18 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type SetGameAliveResultModel struct { + // 错误Code + Code string `json:"code,omitempty"` + // 设置是否成功 + Success bool `json:"success,omitempty"` + // 错误Message + Message string `json:"message,omitempty"` + // 会话ID + GameSession string `json:"gameSession,omitempty"` +} From a2117326505638b0a86468b14e0dfad4337f31d0 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:19:44 +0800 Subject: [PATCH 203/255] feat: update --- client/model/setgamehangforms.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 client/model/setgamehangforms.go diff --git a/client/model/setgamehangforms.go b/client/model/setgamehangforms.go new file mode 100644 index 00000000..6d618e0c --- /dev/null +++ b/client/model/setgamehangforms.go @@ -0,0 +1,18 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type SetGameHangForms struct { + // 会话ID + GameSession string `json:"gameSession"` + // 项目应用AK + AppKey string `json:"appKey"` + // 挂机时长 + Duration int64 `json:"duration"` + // 是否踢出游戏中用户 + KickInTheGame *bool `json:"kickInTheGame,omitempty"` +} From 886b923bf3279b90e39a8f7e4fdaca8767245a83 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:19:45 +0800 Subject: [PATCH 204/255] feat: update --- client/model/setgamehangresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/setgamehangresult.go diff --git a/client/model/setgamehangresult.go b/client/model/setgamehangresult.go new file mode 100644 index 00000000..609c2c1a --- /dev/null +++ b/client/model/setgamehangresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type SetGameHangResult struct { + Success bool `json:"success,omitempty"` + Model SetGameHangResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From ba22823c0a8a0b5aca6c545cf415674cd0278b3c Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:19:46 +0800 Subject: [PATCH 205/255] feat: update --- client/model/setgamehangresultmodel.go | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 client/model/setgamehangresultmodel.go diff --git a/client/model/setgamehangresultmodel.go b/client/model/setgamehangresultmodel.go new file mode 100644 index 00000000..dd385866 --- /dev/null +++ b/client/model/setgamehangresultmodel.go @@ -0,0 +1,22 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type SetGameHangResultModel struct { + // 挂机时长,单位:秒 + Duration int64 `json:"duration,omitempty"` + // 错误Code + Code string `json:"code,omitempty"` + // 开始挂机毫秒时间戳 + StartHangTimestamp int64 `json:"startHangTimestamp,omitempty"` + // 设置是否成功 + Success bool `json:"success,omitempty"` + // 错误Message + Message string `json:"message,omitempty"` + // 会话ID + GameSession string `json:"gameSession,omitempty"` +} From ae1fa1506b9ba1ab855a77358ddf8adddc626f53 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:19:47 +0800 Subject: [PATCH 206/255] feat: update --- client/model/stopgameforms.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 client/model/stopgameforms.go diff --git a/client/model/stopgameforms.go b/client/model/stopgameforms.go new file mode 100644 index 00000000..450810b7 --- /dev/null +++ b/client/model/stopgameforms.go @@ -0,0 +1,20 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type StopGameForms struct { + // 用户id,给到Paas平台和SDK,两者保持一致,全局唯一 + AccountId string `json:"accountId"` + // Paas平台部署的游戏Id + GameId string `json:"gameId"` + // Paas平台AK(应用的AK,非服务端AK) + AppKey string `json:"appKey"` + // 调度成功返回的GameSession + GameSession string `json:"gameSession"` + // 端侧从Paas sdk获取的调度业务参数 + Reason *string `json:"reason,omitempty"` +} From c7f550c0749e105ba494244339085ae6cf657732 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:19:48 +0800 Subject: [PATCH 207/255] feat: update --- client/model/stopgameresult.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 client/model/stopgameresult.go diff --git a/client/model/stopgameresult.go b/client/model/stopgameresult.go new file mode 100644 index 00000000..622ab23f --- /dev/null +++ b/client/model/stopgameresult.go @@ -0,0 +1,17 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type StopGameResult struct { + // 是否成功 + Success bool `json:"success,omitempty"` + Model StopGameResultModel `json:"model,omitempty"` + // 错误信息 + MsgInfo string `json:"msgInfo,omitempty"` + // 错误码 + MsgCode string `json:"msgCode,omitempty"` +} From b9d824e2b09ef67ab0b00c7b31f7765ecee95b6a Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:19:49 +0800 Subject: [PATCH 208/255] feat: update --- client/model/stopgameresultmodel.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 client/model/stopgameresultmodel.go diff --git a/client/model/stopgameresultmodel.go b/client/model/stopgameresultmodel.go new file mode 100644 index 00000000..300555e6 --- /dev/null +++ b/client/model/stopgameresultmodel.go @@ -0,0 +1,20 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type StopGameResultModel struct { + // Paas平台游戏ID + GameId string `json:"gameId,omitempty"` + // 返回码 + Code string `json:"code,omitempty"` + // 调度执行结果 + Success bool `json:"success,omitempty"` + // 返回信息 + Message string `json:"message,omitempty"` + // 会话标识 + GameSession string `json:"gameSession,omitempty"` +} From c298cc0205c9188c7b9d1a00c86c37dc81ad8e32 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:19:51 +0800 Subject: [PATCH 209/255] feat: update --- client/model/stoppreopencontainerforms.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 client/model/stoppreopencontainerforms.go diff --git a/client/model/stoppreopencontainerforms.go b/client/model/stoppreopencontainerforms.go new file mode 100644 index 00000000..a2c5ff9a --- /dev/null +++ b/client/model/stoppreopencontainerforms.go @@ -0,0 +1,15 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type StopPreopenContainerForms struct { + // 云游戏项目appKey + AppKey string `json:"appKey"` + // 云游戏平台游戏ID + GameId string `json:"gameId"` + NumberOfBatches *int32 `json:"numberOfBatches,omitempty"` +} From 3783a99067646e1546bf3222e32a9388d47d5f3c Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:19:52 +0800 Subject: [PATCH 210/255] feat: update --- client/model/stoppreopencontainerresult.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 client/model/stoppreopencontainerresult.go diff --git a/client/model/stoppreopencontainerresult.go b/client/model/stoppreopencontainerresult.go new file mode 100644 index 00000000..490bc026 --- /dev/null +++ b/client/model/stoppreopencontainerresult.go @@ -0,0 +1,18 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type StopPreopenContainerResult struct { + // 是否成功 + Success bool `json:"success,omitempty"` + // 返回值 + Model map[string]string `json:"model,omitempty"` + // 错误信息 + MsgInfo string `json:"msgInfo,omitempty"` + // 错误码 + MsgCode string `json:"msgCode,omitempty"` +} From 97b4a27c25a4266f1aab6ad66639d217c41f735a Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:19:53 +0800 Subject: [PATCH 211/255] feat: update --- client/model/trytogetslotforms.go | 40 +++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 client/model/trytogetslotforms.go diff --git a/client/model/trytogetslotforms.go b/client/model/trytogetslotforms.go new file mode 100644 index 00000000..dd91c570 --- /dev/null +++ b/client/model/trytogetslotforms.go @@ -0,0 +1,40 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type TryToGetSlotForms struct { + // 用户id,给到Paas平台和SDK,两者保持一致,全局唯一 + AccountId string `json:"accountId"` + // Paas平台部署的游戏Id + GameId string `json:"gameId"` + // Paas平台AK(应用的AK,非服务端AK) + AppKey string `json:"appKey"` + // 需要调度的区域 + RegionId *string `json:"regionId,omitempty"` + // false代表不使用断线重连,开启新游戏 + ReConnect *bool `json:"reConnect,omitempty"` + // 端侧从Paas sdk获取的调度业务参数 + BizParam *string `json:"bizParam,omitempty"` + // App端公网ip + ClientIp *string `json:"clientIp,omitempty"` + // 标签之间用半角逗号分隔 + Tags *string `json:"tags,omitempty"` + // 调度等级 + UserLevel *int32 `json:"userLevel,omitempty"` + // 编码 + Codec *int32 `json:"codec,omitempty"` + // 画质 + Resolution *int32 `json:"resolution,omitempty"` + // 码率 + BitRate *int32 `json:"bitRate,omitempty"` + // 帧率 + Fps *int32 `json:"fps,omitempty"` + // 启动命令,透传至ISV用于启动游戏 + GameCmdParam *string `json:"gameCmdParam,omitempty"` + // 游戏启动设置参数 + StartParam *TryToGetSlotFormsStartParam `json:"startParam,omitempty"` +} From d546afc21390ae43fe2e680c4c2b23dac1d6aa0e Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:19:54 +0800 Subject: [PATCH 212/255] feat: update --- client/model/trytogetslotformsstartparam.go | 46 +++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 client/model/trytogetslotformsstartparam.go diff --git a/client/model/trytogetslotformsstartparam.go b/client/model/trytogetslotformsstartparam.go new file mode 100644 index 00000000..3d0de01a --- /dev/null +++ b/client/model/trytogetslotformsstartparam.go @@ -0,0 +1,46 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type TryToGetSlotFormsStartParam struct { + // 游戏调度实例等级 + ScheduleUserLevels *string `json:"scheduleUserLevels,omitempty"` + // 控制游戏运行时长 + KeepAlive *int64 `json:"keepAlive,omitempty"` + // 设备分辨率 + DeviceResolution *string `json:"deviceResolution,omitempty"` + // deviceDpi + DeviceDpi *int32 `json:"deviceDpi,omitempty"` + ArchiveUrl *string `json:"archiveUrl,omitempty"` + // 手游输入法控制 + GameInput *string `json:"gameInput,omitempty"` + // 启动待缩放分辨率 + Resolution *string `json:"resolution,omitempty"` + // 游戏中设备掉线后会话保活时长 + KeepDisconnectAlive *int64 `json:"keepDisconnectAlive,omitempty"` + // 应用渠道 + AppChannel *string `json:"appChannel,omitempty"` + // 设备DPR + DeviceDpr *int32 `json:"deviceDpr,omitempty"` + // 游戏初始化路径 + CloudInit *string `json:"cloudInit,omitempty"` + // 游戏脚本id + ScriptId *int32 `json:"scriptId,omitempty"` + // 码率自适应开关 + BitRateSelfAdaption *int32 `json:"bitRateSelfAdaption,omitempty"` + // 游戏中无操作时会话保活时长 + KeepNoPlayAlive *int64 `json:"keepNoPlayAlive,omitempty"` + // 设备号Android + Ssaid *string `json:"ssaid,omitempty"` + ArchiveMd5 *string `json:"archiveMd5,omitempty"` + // 设备id + SysDeviceId *string `json:"sysDeviceId,omitempty"` + // 设备型号 + DeviceModel *string `json:"deviceModel,omitempty"` + // 设备品牌 + DeviceBrand *string `json:"deviceBrand,omitempty"` +} From 5e94b6c61a2eb347af655ba16667017faf33e534 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:19:55 +0800 Subject: [PATCH 213/255] feat: update --- client/model/trytogetslotresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/trytogetslotresult.go diff --git a/client/model/trytogetslotresult.go b/client/model/trytogetslotresult.go new file mode 100644 index 00000000..9983b7f8 --- /dev/null +++ b/client/model/trytogetslotresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type TryToGetSlotResult struct { + Success bool `json:"success,omitempty"` + Model TryToGetSlotResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From cf2bdc5f62034cc2cd5736cfc3d6f0bc58350e49 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:19:56 +0800 Subject: [PATCH 214/255] feat: update --- client/model/trytogetslotresultmodel.go | 34 +++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 client/model/trytogetslotresultmodel.go diff --git a/client/model/trytogetslotresultmodel.go b/client/model/trytogetslotresultmodel.go new file mode 100644 index 00000000..dab457c3 --- /dev/null +++ b/client/model/trytogetslotresultmodel.go @@ -0,0 +1,34 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type TryToGetSlotResultModel struct { + // Paas平台游戏ID + GameId string `json:"gameId,omitempty"` + // 用户id,给到Paas平台和SDK,两者保持一致,全局唯一 + AccountId string `json:"accountId,omitempty"` + // 调度资源所在国家 + Country string `json:"country,omitempty"` + // 返回码 + Code string `json:"code,omitempty"` + // 调度资源所在省份 + Province string `json:"province,omitempty"` + // 分配的region + RegionId string `json:"regionId,omitempty"` + // 调度资源所在城市 + City string `json:"city,omitempty"` + // 调度资源运营商信息 + Operators []TryToGetSlotResultModelOperators `json:"operators,omitempty"` + // 调度执行结果 + Success bool `json:"success,omitempty"` + // 返回信息 + Message string `json:"message,omitempty"` + // 调度结果集 + SlotData string `json:"slotData,omitempty"` + // 会话标识 + GameSession string `json:"gameSession,omitempty"` +} From dc3f441a14fe6b32766072b53fc1e305b6c86237 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:19:57 +0800 Subject: [PATCH 215/255] feat: update --- client/model/trytogetslotresultmodeloperators.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 client/model/trytogetslotresultmodeloperators.go diff --git a/client/model/trytogetslotresultmodeloperators.go b/client/model/trytogetslotresultmodeloperators.go new file mode 100644 index 00000000..594b2673 --- /dev/null +++ b/client/model/trytogetslotresultmodeloperators.go @@ -0,0 +1,16 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type TryToGetSlotResultModelOperators struct { + // 运营商英文名称 + OperatorEnName string `json:"operatorEnName,omitempty"` + // 运营商IP + OperatorIp string `json:"operatorIp,omitempty"` + // 运营商中文名称 + OperatorCnName string `json:"operatorCnName,omitempty"` +} From 0bcfb34eea65132ff84a4c00e969930b69f005da Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:19:59 +0800 Subject: [PATCH 216/255] feat: update --- client/model/trytogetslotsforms.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 client/model/trytogetslotsforms.go diff --git a/client/model/trytogetslotsforms.go b/client/model/trytogetslotsforms.go new file mode 100644 index 00000000..c04fa870 --- /dev/null +++ b/client/model/trytogetslotsforms.go @@ -0,0 +1,13 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type TryToGetSlotsForms struct { + AppKey string `json:"appKey"` + ParallelSchedule bool `json:"parallelSchedule"` + Requests []TryToGetSlotsFormsRequests `json:"requests"` +} From 7521823b6dbf49d587dc320de2d4330e20cc7a8b Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:20:00 +0800 Subject: [PATCH 217/255] feat: update --- client/model/trytogetslotsformsrequests.go | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 client/model/trytogetslotsformsrequests.go diff --git a/client/model/trytogetslotsformsrequests.go b/client/model/trytogetslotsformsrequests.go new file mode 100644 index 00000000..37ede230 --- /dev/null +++ b/client/model/trytogetslotsformsrequests.go @@ -0,0 +1,24 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type TryToGetSlotsFormsRequests struct { + GameId string `json:"gameId,omitempty"` + Fps int32 `json:"fps,omitempty"` + ReConnect bool `json:"reConnect,omitempty"` + Resolution int32 `json:"resolution,omitempty"` + Tags string `json:"tags,omitempty"` + GameCmdParam string `json:"gameCmdParam,omitempty"` + AccountId string `json:"accountId,omitempty"` + Codec int32 `json:"codec,omitempty"` + UserLevel int32 `json:"userLevel,omitempty"` + StartParam TryToGetSlotsFormsRequestsStartParam `json:"startParam,omitempty"` + RegionId string `json:"regionId,omitempty"` + BitRate int32 `json:"bitRate,omitempty"` + ClientIp string `json:"clientIp,omitempty"` + BizParam string `json:"bizParam,omitempty"` +} From 15602250cd5e0d8dcf29a24616e7d2c2af675b2c Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:20:01 +0800 Subject: [PATCH 218/255] feat: update --- .../trytogetslotsformsrequestsstartparam.go | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 client/model/trytogetslotsformsrequestsstartparam.go diff --git a/client/model/trytogetslotsformsrequestsstartparam.go b/client/model/trytogetslotsformsrequestsstartparam.go new file mode 100644 index 00000000..c4c9b8ca --- /dev/null +++ b/client/model/trytogetslotsformsrequestsstartparam.go @@ -0,0 +1,29 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type TryToGetSlotsFormsRequestsStartParam struct { + ScheduleUserLevels string `json:"scheduleUserLevels,omitempty"` + KeepAlive int64 `json:"keepAlive,omitempty"` + DeviceResolution string `json:"deviceResolution,omitempty"` + DeviceDpi int32 `json:"deviceDpi,omitempty"` + ArchiveUrl string `json:"archiveUrl,omitempty"` + GameInput string `json:"gameInput,omitempty"` + Resolution string `json:"resolution,omitempty"` + KeepDisconnectAlive int64 `json:"keepDisconnectAlive,omitempty"` + AppChannel string `json:"appChannel,omitempty"` + DeviceDpr int32 `json:"deviceDpr,omitempty"` + CloudInit string `json:"cloudInit,omitempty"` + ScriptId int32 `json:"scriptId,omitempty"` + BitRateSelfAdaption int32 `json:"bitRateSelfAdaption,omitempty"` + KeepNoPlayAlive int64 `json:"keepNoPlayAlive,omitempty"` + Ssaid string `json:"ssaid,omitempty"` + ArchiveMd5 string `json:"archiveMd5,omitempty"` + SysDeviceId string `json:"sysDeviceId,omitempty"` + DeviceModel string `json:"deviceModel,omitempty"` + DeviceBrand string `json:"deviceBrand,omitempty"` +} From 2a76d6c65cede9bc295b6116ec93fcf1868a37a9 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:20:02 +0800 Subject: [PATCH 219/255] feat: update --- client/model/trytogetslotsresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/trytogetslotsresult.go diff --git a/client/model/trytogetslotsresult.go b/client/model/trytogetslotsresult.go new file mode 100644 index 00000000..8f0ddf3f --- /dev/null +++ b/client/model/trytogetslotsresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type TryToGetSlotsResult struct { + Success bool `json:"success,omitempty"` + Model TryToGetSlotsResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From 774f93dae78f54ade84cef759e0801daef9962d3 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:20:03 +0800 Subject: [PATCH 220/255] feat: update --- client/model/trytogetslotsresultmodel.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/trytogetslotsresultmodel.go diff --git a/client/model/trytogetslotsresultmodel.go b/client/model/trytogetslotsresultmodel.go new file mode 100644 index 00000000..4a174da0 --- /dev/null +++ b/client/model/trytogetslotsresultmodel.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type TryToGetSlotsResultModel struct { + Code string `json:"code,omitempty"` + Success bool `json:"success,omitempty"` + Responses []TryToGetSlotsResultModelResponses `json:"responses,omitempty"` + Message string `json:"message,omitempty"` +} From 926479a4c42e3a5f010d6175a0938748a5d754b0 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:20:05 +0800 Subject: [PATCH 221/255] feat: update --- .../model/trytogetslotsresultmodelresponses.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 client/model/trytogetslotsresultmodelresponses.go diff --git a/client/model/trytogetslotsresultmodelresponses.go b/client/model/trytogetslotsresultmodelresponses.go new file mode 100644 index 00000000..50793610 --- /dev/null +++ b/client/model/trytogetslotsresultmodelresponses.go @@ -0,0 +1,18 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type TryToGetSlotsResultModelResponses struct { + GameId string `json:"gameId,omitempty"` + AccountId string `json:"accountId,omitempty"` + Code string `json:"code,omitempty"` + RegionId string `json:"regionId,omitempty"` + Success bool `json:"success,omitempty"` + Message string `json:"message,omitempty"` + SlotData string `json:"slotData,omitempty"` + GameSession string `json:"gameSession,omitempty"` +} From 21671f0d466ae01a9a281150ced78600672fcee9 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:20:06 +0800 Subject: [PATCH 222/255] feat: update --- client/model/updatepreopenstrategyforms.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 client/model/updatepreopenstrategyforms.go diff --git a/client/model/updatepreopenstrategyforms.go b/client/model/updatepreopenstrategyforms.go new file mode 100644 index 00000000..32e5b36b --- /dev/null +++ b/client/model/updatepreopenstrategyforms.go @@ -0,0 +1,13 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type UpdatePreopenStrategyForms struct { + AppKey string `json:"appKey"` + GameId string `json:"gameId"` + PreStartCmd *string `json:"preStartCmd,omitempty"` +} From 153ae1324c08383ec70af4be3205acaaf87b0c46 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:20:07 +0800 Subject: [PATCH 223/255] feat: update --- client/model/updatepreopenstrategyresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/updatepreopenstrategyresult.go diff --git a/client/model/updatepreopenstrategyresult.go b/client/model/updatepreopenstrategyresult.go new file mode 100644 index 00000000..a86b06b2 --- /dev/null +++ b/client/model/updatepreopenstrategyresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type UpdatePreopenStrategyResult struct { + Success bool `json:"success,omitempty"` + Model map[string]string `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From f45c247bb2c4c4e11f66e2293cf8aa8d580445ed Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:20:08 +0800 Subject: [PATCH 224/255] feat: update --- .../model/usercontrollerdeletegamearchiveforms.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 client/model/usercontrollerdeletegamearchiveforms.go diff --git a/client/model/usercontrollerdeletegamearchiveforms.go b/client/model/usercontrollerdeletegamearchiveforms.go new file mode 100644 index 00000000..803a5a10 --- /dev/null +++ b/client/model/usercontrollerdeletegamearchiveforms.go @@ -0,0 +1,13 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type UsercontrollerDeleteGameArchiveForms struct { + AccountId string `json:"accountId"` + GameId string `json:"gameId"` + ArchiveId string `json:"archiveId"` +} From f61b275c4892b49492244d549113cdca1a5fe3a7 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:20:09 +0800 Subject: [PATCH 225/255] feat: update --- .../model/usercontrollerdeletegamearchiveresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/usercontrollerdeletegamearchiveresult.go diff --git a/client/model/usercontrollerdeletegamearchiveresult.go b/client/model/usercontrollerdeletegamearchiveresult.go new file mode 100644 index 00000000..469ef31b --- /dev/null +++ b/client/model/usercontrollerdeletegamearchiveresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type UsercontrollerDeleteGameArchiveResult struct { + Success bool `json:"success,omitempty"` + Model UsercontrollerDeleteGameArchiveResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From c00728ec5c9a2b801fdcc3e550de05cf5a9ebee9 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:20:11 +0800 Subject: [PATCH 226/255] feat: update --- .../usercontrollerdeletegamearchiveresultmodel.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 client/model/usercontrollerdeletegamearchiveresultmodel.go diff --git a/client/model/usercontrollerdeletegamearchiveresultmodel.go b/client/model/usercontrollerdeletegamearchiveresultmodel.go new file mode 100644 index 00000000..9aa9b73e --- /dev/null +++ b/client/model/usercontrollerdeletegamearchiveresultmodel.go @@ -0,0 +1,11 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type UsercontrollerDeleteGameArchiveResultModel struct { + Status int32 `json:"status,omitempty"` +} From eefbf02d592cc1af01ba0f204065991ff74140f1 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:20:12 +0800 Subject: [PATCH 227/255] feat: update --- ...ercontrollergetgametrialsurplusdurationforms.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/usercontrollergetgametrialsurplusdurationforms.go diff --git a/client/model/usercontrollergetgametrialsurplusdurationforms.go b/client/model/usercontrollergetgametrialsurplusdurationforms.go new file mode 100644 index 00000000..fcf20791 --- /dev/null +++ b/client/model/usercontrollergetgametrialsurplusdurationforms.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type UsercontrollerGetGameTrialSurplusDurationForms struct { + // 账号id + AccountId string `json:"accountId"` + GameId string `json:"gameId"` + ProjectId string `json:"projectId"` +} From 06eb1e5746419f93384c52a60c89e0ce80355b8d Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:20:13 +0800 Subject: [PATCH 228/255] feat: update --- ...rcontrollergetgametrialsurplusdurationresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/usercontrollergetgametrialsurplusdurationresult.go diff --git a/client/model/usercontrollergetgametrialsurplusdurationresult.go b/client/model/usercontrollergetgametrialsurplusdurationresult.go new file mode 100644 index 00000000..76c302d1 --- /dev/null +++ b/client/model/usercontrollergetgametrialsurplusdurationresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type UsercontrollerGetGameTrialSurplusDurationResult struct { + Success bool `json:"success,omitempty"` + Model UsercontrollerGetGameTrialSurplusDurationResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From 1bc85ecad10e0d757b22b747f2ec2dd4c4dcf98b Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:20:14 +0800 Subject: [PATCH 229/255] feat: update --- ...ontrollergetgametrialsurplusdurationresultmodel.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 client/model/usercontrollergetgametrialsurplusdurationresultmodel.go diff --git a/client/model/usercontrollergetgametrialsurplusdurationresultmodel.go b/client/model/usercontrollergetgametrialsurplusdurationresultmodel.go new file mode 100644 index 00000000..25e4652a --- /dev/null +++ b/client/model/usercontrollergetgametrialsurplusdurationresultmodel.go @@ -0,0 +1,11 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type UsercontrollerGetGameTrialSurplusDurationResultModel struct { + TrialPolicyResponses []UsercontrollerGetGameTrialSurplusDurationResultModelTrialPolicyResponses `json:"trialPolicyResponses,omitempty"` +} From c24f3b82db776910bc75cbaf810aa971f94d6499 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:20:15 +0800 Subject: [PATCH 230/255] feat: update --- ...rplusdurationresultmodeltrialpolicyresponses.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/usercontrollergetgametrialsurplusdurationresultmodeltrialpolicyresponses.go diff --git a/client/model/usercontrollergetgametrialsurplusdurationresultmodeltrialpolicyresponses.go b/client/model/usercontrollergetgametrialsurplusdurationresultmodeltrialpolicyresponses.go new file mode 100644 index 00000000..bf4ccb94 --- /dev/null +++ b/client/model/usercontrollergetgametrialsurplusdurationresultmodeltrialpolicyresponses.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type UsercontrollerGetGameTrialSurplusDurationResultModelTrialPolicyResponses struct { + // 策略类型 + PolicyType string `json:"policyType,omitempty"` + // 剩余试玩时长 + SurplusDurationInSecond int64 `json:"surplusDurationInSecond,omitempty"` +} From 0567b2dc1f8e248a28b1ccce20620d7976e353ba Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:20:16 +0800 Subject: [PATCH 231/255] feat: update --- .../model/usercontrollergetusergamearchiveforms.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 client/model/usercontrollergetusergamearchiveforms.go diff --git a/client/model/usercontrollergetusergamearchiveforms.go b/client/model/usercontrollergetusergamearchiveforms.go new file mode 100644 index 00000000..7db8a9d7 --- /dev/null +++ b/client/model/usercontrollergetusergamearchiveforms.go @@ -0,0 +1,13 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type UsercontrollerGetUserGameArchiveForms struct { + AccountId string `json:"accountId"` + GameId string `json:"gameId"` + ProjectId string `json:"projectId"` +} From 206aedbfe41917923f330c396ff1782c2cc976f2 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:20:18 +0800 Subject: [PATCH 232/255] feat: update --- .../usercontrollergetusergamearchiveresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/usercontrollergetusergamearchiveresult.go diff --git a/client/model/usercontrollergetusergamearchiveresult.go b/client/model/usercontrollergetusergamearchiveresult.go new file mode 100644 index 00000000..8f6643f7 --- /dev/null +++ b/client/model/usercontrollergetusergamearchiveresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type UsercontrollerGetUserGameArchiveResult struct { + Success bool `json:"success,omitempty"` + Model UsercontrollerGetUserGameArchiveResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From 2afa5ba34bf48370a21cce190e4b5fc2935e8a38 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:20:19 +0800 Subject: [PATCH 233/255] feat: update --- .../usercontrollergetusergamearchiveresultmodel.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 client/model/usercontrollergetusergamearchiveresultmodel.go diff --git a/client/model/usercontrollergetusergamearchiveresultmodel.go b/client/model/usercontrollergetusergamearchiveresultmodel.go new file mode 100644 index 00000000..cbca1e32 --- /dev/null +++ b/client/model/usercontrollergetusergamearchiveresultmodel.go @@ -0,0 +1,13 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type UsercontrollerGetUserGameArchiveResultModel struct { + UserGameArchiveDTO UsercontrollerGetUserGameArchiveResultModelUserGameArchiveDto `json:"userGameArchiveDTO,omitempty"` + DownloadUrl string `json:"downloadUrl,omitempty"` + ObjectMD5 string `json:"objectMD5,omitempty"` +} From b3cfb0f073bfa42027ff089586c316dc2feacf10 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:20:20 +0800 Subject: [PATCH 234/255] feat: update --- ...usergamearchiveresultmodelusergamearchivedto.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/usercontrollergetusergamearchiveresultmodelusergamearchivedto.go diff --git a/client/model/usercontrollergetusergamearchiveresultmodelusergamearchivedto.go b/client/model/usercontrollergetusergamearchiveresultmodelusergamearchivedto.go new file mode 100644 index 00000000..20c11a7d --- /dev/null +++ b/client/model/usercontrollergetusergamearchiveresultmodelusergamearchivedto.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type UsercontrollerGetUserGameArchiveResultModelUserGameArchiveDto struct { + // 游戏会话ID + GameSessionId string `json:"gameSessionId,omitempty"` + // 存档生成时间 + GmtCreate int64 `json:"gmtCreate,omitempty"` +} From fefcad2ebcf6f24d436b93673ca698e726050c14 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:20:21 +0800 Subject: [PATCH 235/255] feat: update --- .../usercontrollerlistlatestgamearchiveforms.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 client/model/usercontrollerlistlatestgamearchiveforms.go diff --git a/client/model/usercontrollerlistlatestgamearchiveforms.go b/client/model/usercontrollerlistlatestgamearchiveforms.go new file mode 100644 index 00000000..78eb823a --- /dev/null +++ b/client/model/usercontrollerlistlatestgamearchiveforms.go @@ -0,0 +1,15 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type UsercontrollerListLatestGameArchiveForms struct { + AccountId string `json:"accountId"` + GameId string `json:"gameId"` + PageSize *int32 `json:"pageSize,omitempty"` + PageNumber *int32 `json:"pageNumber,omitempty"` + TagStatus *int32 `json:"tagStatus,omitempty"` +} From ab8fdc6dced57916f7bc0bd77bc6366f011f071d Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:20:23 +0800 Subject: [PATCH 236/255] feat: update --- .../usercontrollerlistlatestgamearchiveresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/usercontrollerlistlatestgamearchiveresult.go diff --git a/client/model/usercontrollerlistlatestgamearchiveresult.go b/client/model/usercontrollerlistlatestgamearchiveresult.go new file mode 100644 index 00000000..63df4dba --- /dev/null +++ b/client/model/usercontrollerlistlatestgamearchiveresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type UsercontrollerListLatestGameArchiveResult struct { + Success bool `json:"success,omitempty"` + Model UsercontrollerListLatestGameArchiveResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From 046337bcbdebe67553bd85b3b772d448faff251f Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:20:24 +0800 Subject: [PATCH 237/255] feat: update --- ...rcontrollerlistlatestgamearchiveresultmodel.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 client/model/usercontrollerlistlatestgamearchiveresultmodel.go diff --git a/client/model/usercontrollerlistlatestgamearchiveresultmodel.go b/client/model/usercontrollerlistlatestgamearchiveresultmodel.go new file mode 100644 index 00000000..f0b82705 --- /dev/null +++ b/client/model/usercontrollerlistlatestgamearchiveresultmodel.go @@ -0,0 +1,15 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type UsercontrollerListLatestGameArchiveResultModel struct { + PageNumber int32 `json:"pageNumber,omitempty"` + RequestId string `json:"requestId,omitempty"` + PageSize int32 `json:"pageSize,omitempty"` + TotalCount int32 `json:"totalCount,omitempty"` + Items []UsercontrollerListLatestGameArchiveResultModelItems `json:"items,omitempty"` +} From 19ec1575006e424fb3f40c75aeaa27e814677b14 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:20:25 +0800 Subject: [PATCH 238/255] feat: update --- ...rollerlistlatestgamearchiveresultmodelitems.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 client/model/usercontrollerlistlatestgamearchiveresultmodelitems.go diff --git a/client/model/usercontrollerlistlatestgamearchiveresultmodelitems.go b/client/model/usercontrollerlistlatestgamearchiveresultmodelitems.go new file mode 100644 index 00000000..f81646d2 --- /dev/null +++ b/client/model/usercontrollerlistlatestgamearchiveresultmodelitems.go @@ -0,0 +1,15 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type UsercontrollerListLatestGameArchiveResultModelItems struct { + GameId string `json:"gameId,omitempty"` + AccountId string `json:"accountId,omitempty"` + ArchiveTime int64 `json:"archiveTime,omitempty"` + TagStatus int32 `json:"tagStatus,omitempty"` + ArchiveId string `json:"archiveId,omitempty"` +} From 0be1b02177a4374e84790880fcb4c0ccb23dcee2 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:20:26 +0800 Subject: [PATCH 239/255] feat: update --- .../model/usercontrollerrestoregamearchiveforms.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 client/model/usercontrollerrestoregamearchiveforms.go diff --git a/client/model/usercontrollerrestoregamearchiveforms.go b/client/model/usercontrollerrestoregamearchiveforms.go new file mode 100644 index 00000000..29ccf8e8 --- /dev/null +++ b/client/model/usercontrollerrestoregamearchiveforms.go @@ -0,0 +1,13 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type UsercontrollerRestoreGameArchiveForms struct { + AccountId string `json:"accountId"` + GameId string `json:"gameId"` + ArchiveId string `json:"archiveId"` +} From 7023a046ec5a987c8bd55c340ef07ccac73973b4 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:20:27 +0800 Subject: [PATCH 240/255] feat: update --- .../usercontrollerrestoregamearchiveresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/usercontrollerrestoregamearchiveresult.go diff --git a/client/model/usercontrollerrestoregamearchiveresult.go b/client/model/usercontrollerrestoregamearchiveresult.go new file mode 100644 index 00000000..641a93ef --- /dev/null +++ b/client/model/usercontrollerrestoregamearchiveresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type UsercontrollerRestoreGameArchiveResult struct { + Success bool `json:"success,omitempty"` + Model UsercontrollerRestoreGameArchiveResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From 066ca6cdfa9bd0b78b292114cc0bb44bd63a74e3 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:20:29 +0800 Subject: [PATCH 241/255] feat: update --- .../usercontrollerrestoregamearchiveresultmodel.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 client/model/usercontrollerrestoregamearchiveresultmodel.go diff --git a/client/model/usercontrollerrestoregamearchiveresultmodel.go b/client/model/usercontrollerrestoregamearchiveresultmodel.go new file mode 100644 index 00000000..68494cfb --- /dev/null +++ b/client/model/usercontrollerrestoregamearchiveresultmodel.go @@ -0,0 +1,11 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type UsercontrollerRestoreGameArchiveResultModel struct { + Status int32 `json:"status,omitempty"` +} From 4bb282023c5b5ae9334cc503a6a61f8a3558a779 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:20:30 +0800 Subject: [PATCH 242/255] feat: update --- ...sercontrollerupdategamearchivetagstatusforms.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/usercontrollerupdategamearchivetagstatusforms.go diff --git a/client/model/usercontrollerupdategamearchivetagstatusforms.go b/client/model/usercontrollerupdategamearchivetagstatusforms.go new file mode 100644 index 00000000..87522e51 --- /dev/null +++ b/client/model/usercontrollerupdategamearchivetagstatusforms.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type UsercontrollerUpdateGameArchiveTagStatusForms struct { + AccountId string `json:"accountId"` + GameId string `json:"gameId"` + ArchiveId string `json:"archiveId"` + TagStatus int32 `json:"tagStatus"` +} From b909dfc2be057451431c8727e174ab03f9b96902 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:20:31 +0800 Subject: [PATCH 243/255] feat: update --- ...ercontrollerupdategamearchivetagstatusresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/usercontrollerupdategamearchivetagstatusresult.go diff --git a/client/model/usercontrollerupdategamearchivetagstatusresult.go b/client/model/usercontrollerupdategamearchivetagstatusresult.go new file mode 100644 index 00000000..e24ab76c --- /dev/null +++ b/client/model/usercontrollerupdategamearchivetagstatusresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type UsercontrollerUpdateGameArchiveTagStatusResult struct { + Success bool `json:"success,omitempty"` + Model UsercontrollerUpdateGameArchiveTagStatusResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From 9c64578ab2e34525e39ca4f7017d74b2d550d8f2 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:20:32 +0800 Subject: [PATCH 244/255] feat: update --- ...controllerupdategamearchivetagstatusresultmodel.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 client/model/usercontrollerupdategamearchivetagstatusresultmodel.go diff --git a/client/model/usercontrollerupdategamearchivetagstatusresultmodel.go b/client/model/usercontrollerupdategamearchivetagstatusresultmodel.go new file mode 100644 index 00000000..9bd8a975 --- /dev/null +++ b/client/model/usercontrollerupdategamearchivetagstatusresultmodel.go @@ -0,0 +1,11 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type UsercontrollerUpdateGameArchiveTagStatusResultModel struct { + Status int32 `json:"status,omitempty"` +} From f8c7f391e7d2179a6d83af9edc00a2e697a1068b Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:20:33 +0800 Subject: [PATCH 245/255] feat: update --- client/api/adapt_api.go | 188 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 188 insertions(+) create mode 100644 client/api/adapt_api.go diff --git a/client/api/adapt_api.go b/client/api/adapt_api.go new file mode 100644 index 00000000..8fd6150b --- /dev/null +++ b/client/api/adapt_api.go @@ -0,0 +1,188 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package api + +import ( + "github.com/aliyun/alibabacloud-yjopenapi-go-client/client/model" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +type AdaptApiService service + + +// CreateAndSubmitAll +/* + * createAndSubmitAll + * @param varForms model.AdaptCreateAndSubmitAllForms + */ +func (s *AdaptApiService) CreateAndSubmitAll( + varForms *model.AdaptCreateAndSubmitAllForms, +) (model.AdaptCreateAndSubmitAllResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.AdaptCreateAndSubmitAllResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/adapt/createAndSubmitAll" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + if varForms != nil && varForms.GameId != nil { + varFormParams.Add("gameId", parameterToString(*varForms.GameId, "")) + } + if varForms != nil && varForms.GameName != nil { + varFormParams.Add("gameName", parameterToString(*varForms.GameName, "")) + } + if varForms != nil && varForms.GameVersionId != nil { + varFormParams.Add("gameVersionId", parameterToString(*varForms.GameVersionId, "")) + } + if varForms != nil && varForms.GameVersion != nil { + varFormParams.Add("gameVersion", parameterToString(*varForms.GameVersion, "")) + } + if varForms != nil && varForms.ResolutionList != nil { + varFormParams.Add("resolutionList", parameterToString(*varForms.ResolutionList, "")) + } + if varForms != nil && varForms.FrameRateList != nil { + varFormParams.Add("frameRateList", parameterToString(*varForms.FrameRateList, "")) + } + varFormParams.Add("platformType", parameterToString(varForms.PlatformType, "")) + varFormParams.Add("sourcePlatform", parameterToString(varForms.SourcePlatform, "")) + varFormParams.Add("records", parameterToString(varForms.Records, "")) + varFormParams.Add("mixGameVersionId", parameterToString(varForms.MixGameVersionId, "")) + varFormParams.Add("mixGameId", parameterToString(varForms.MixGameId, "")) + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// QueryRequestById +/* + * queryRequestById + * @param varForms model.AdaptQueryRequestByIdForms + */ +func (s *AdaptApiService) QueryRequestById( + varForms *model.AdaptQueryRequestByIdForms, +) (model.AdaptQueryRequestByIdResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.AdaptQueryRequestByIdResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/adapt/queryRequestById" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + varFormParams.Add("id", parameterToString(varForms.Id, "")) + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} From b33106cf7eb9f23ecf88fc7d5c2fbdaf537b3384 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:20:35 +0800 Subject: [PATCH 246/255] feat: update --- client/api/console_admin_api.go | 2782 +++++++++++++++++++++++++++++++ 1 file changed, 2782 insertions(+) create mode 100644 client/api/console_admin_api.go diff --git a/client/api/console_admin_api.go b/client/api/console_admin_api.go new file mode 100644 index 00000000..2e745b52 --- /dev/null +++ b/client/api/console_admin_api.go @@ -0,0 +1,2782 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package api + +import ( + "github.com/aliyun/alibabacloud-yjopenapi-go-client/client/model" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +type ConsoleAdminApiService service + + +// ActivateDeployment +/* + * + * @param varForms model.ConsoleAdminActivateDeploymentForms + */ +func (s *ConsoleAdminApiService) ActivateDeployment( + varForms *model.ConsoleAdminActivateDeploymentForms, +) (model.ConsoleAdminActivateDeploymentResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.ConsoleAdminActivateDeploymentResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/consoleAdmin/activateDeployment" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + varFormParams.Add("gameId", parameterToString(varForms.GameId, "")) + varFormParams.Add("projectId", parameterToString(varForms.ProjectId, "")) + varFormParams.Add("versionId", parameterToString(varForms.VersionId, "")) + if varForms != nil && varForms.MaxConcurrency != nil { + varFormParams.Add("maxConcurrency", parameterToString(*varForms.MaxConcurrency, "")) + } + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// AdaptGameVersion +/* + * + * @param varForms model.ConsoleAdminAdaptGameVersionForms + */ +func (s *ConsoleAdminApiService) AdaptGameVersion( + varForms *model.ConsoleAdminAdaptGameVersionForms, +) (model.ConsoleAdminAdaptGameVersionResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.ConsoleAdminAdaptGameVersionResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/consoleAdmin/adaptGameVersion" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + varFormParams.Add("versionId", parameterToString(varForms.VersionId, "")) + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// AddGameToProject +/* + * + * @param varForms model.ConsoleAdminAddGameToProjectForms + */ +func (s *ConsoleAdminApiService) AddGameToProject( + varForms *model.ConsoleAdminAddGameToProjectForms, +) (model.ConsoleAdminAddGameToProjectResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.ConsoleAdminAddGameToProjectResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/consoleAdmin/addGameToProject" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + varFormParams.Add("projectId", parameterToString(varForms.ProjectId, "")) + varFormParams.Add("gameId", parameterToString(varForms.GameId, "")) + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// BatchUpdateDispatchConfig +/* + * 批量更新游戏各自调度配置 + * @param varForms model.ConsoleAdminBatchUpdateDispatchConfigForms + */ +func (s *ConsoleAdminApiService) BatchUpdateDispatchConfig( + varForms *model.ConsoleAdminBatchUpdateDispatchConfigForms, +) (model.ConsoleAdminBatchUpdateDispatchConfigResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.ConsoleAdminBatchUpdateDispatchConfigResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/consoleAdmin/batchUpdateDispatchConfig" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + varFormParams.Add("mixProjectId", parameterToString(varForms.MixProjectId, "")) + varFormParams.Add("instanceId", parameterToString(varForms.InstanceId, "")) + varFormParams.Add("appName", parameterToString(varForms.AppName, "")) + varFormParams.Add("configList", parameterToString(varForms.ConfigList, "multi")) + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// CreateGame +/* + * + * @param varForms model.ConsoleAdminCreateGameForms + */ +func (s *ConsoleAdminApiService) CreateGame( + varForms *model.ConsoleAdminCreateGameForms, +) (model.ConsoleAdminCreateGameResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.ConsoleAdminCreateGameResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/consoleAdmin/createGame" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + varFormParams.Add("gameName", parameterToString(varForms.GameName, "")) + varFormParams.Add("platformType", parameterToString(varForms.PlatformType, "")) + if varForms != nil && varForms.OsType != nil { + varFormParams.Add("osType", parameterToString(*varForms.OsType, "")) + } + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// CreateOrder +/* + * 订单下单 + * @param varForms model.ConsoleAdminCreateOrderForms + */ +func (s *ConsoleAdminApiService) CreateOrder( + varForms *model.ConsoleAdminCreateOrderForms, +) (model.ConsoleAdminCreateOrderResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.ConsoleAdminCreateOrderResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/consoleAdmin/createOrder" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + varFormParams.Add("categoryCode", parameterToString(varForms.CategoryCode, "")) + varFormParams.Add("commodityCode", parameterToString(varForms.CommodityCode, "")) + if varForms != nil && varForms.InstanceId != nil { + varFormParams.Add("instanceId", parameterToString(*varForms.InstanceId, "")) + } + varFormParams.Add("primaryChargeItemCode", parameterToString(varForms.PrimaryChargeItemCode, "")) + varFormParams.Add("attributeRequestList", parameterToString(varForms.AttributeRequestList, "multi")) + varFormParams.Add("orderType", parameterToString(varForms.OrderType, "")) + if varForms != nil && varForms.AutoRenew != nil { + varFormParams.Add("autoRenew", parameterToString(*varForms.AutoRenew, "")) + } + if varForms != nil && varForms.CreateOrderExtParams != nil { + varFormParams.Add("createOrderExtParams", parameterToString(*varForms.CreateOrderExtParams, "")) + } + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// CreateProject +/* + * + * @param varForms model.ConsoleAdminCreateProjectForms + */ +func (s *ConsoleAdminApiService) CreateProject( + varForms *model.ConsoleAdminCreateProjectForms, +) (model.ConsoleAdminCreateProjectResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.ConsoleAdminCreateProjectResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/consoleAdmin/createProject" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + varFormParams.Add("projectName", parameterToString(varForms.ProjectName, "")) + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// DeleteGame +/* + * + * @param varForms model.ConsoleAdminDeleteGameForms + */ +func (s *ConsoleAdminApiService) DeleteGame( + varForms *model.ConsoleAdminDeleteGameForms, +) (model.ConsoleAdminDeleteGameResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.ConsoleAdminDeleteGameResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/consoleAdmin/deleteGame" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + varFormParams.Add("gameId", parameterToString(varForms.GameId, "")) + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// DeleteGameVersion +/* + * + * @param varForms model.ConsoleAdminDeleteGameVersionForms + */ +func (s *ConsoleAdminApiService) DeleteGameVersion( + varForms *model.ConsoleAdminDeleteGameVersionForms, +) (model.ConsoleAdminDeleteGameVersionResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.ConsoleAdminDeleteGameVersionResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/consoleAdmin/deleteGameVersion" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + varFormParams.Add("versionId", parameterToString(varForms.VersionId, "")) + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// DeleteProject +/* + * + * @param varForms model.ConsoleAdminDeleteProjectForms + */ +func (s *ConsoleAdminApiService) DeleteProject( + varForms *model.ConsoleAdminDeleteProjectForms, +) (model.ConsoleAdminDeleteProjectResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.ConsoleAdminDeleteProjectResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/consoleAdmin/deleteProject" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + varFormParams.Add("projectId", parameterToString(varForms.ProjectId, "")) + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// GetBillFlowInfo +/* + * + * @param varForms model.ConsoleAdminGetBillFlowInfoForms + */ +func (s *ConsoleAdminApiService) GetBillFlowInfo( + varForms *model.ConsoleAdminGetBillFlowInfoForms, +) (model.ConsoleAdminGetBillFlowInfoResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.ConsoleAdminGetBillFlowInfoResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/consoleAdmin/getBillFlowInfo" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + varFormParams.Add("accountingPeriodFrom", parameterToString(varForms.AccountingPeriodFrom, "")) + varFormParams.Add("accountingPeriodTo", parameterToString(varForms.AccountingPeriodTo, "")) + if varForms != nil && varForms.CommodityCode != nil { + varFormParams.Add("commodityCode", parameterToString(*varForms.CommodityCode, "")) + } + if varForms != nil && varForms.TenantId != nil { + varFormParams.Add("tenantId", parameterToString(*varForms.TenantId, "")) + } + if varForms != nil && varForms.OrderId != nil { + varFormParams.Add("orderId", parameterToString(*varForms.OrderId, "")) + } + if varForms != nil && varForms.Status != nil { + varFormParams.Add("status", parameterToString(*varForms.Status, "")) + } + if varForms != nil && varForms.ConsumeType != nil { + varFormParams.Add("consumeType", parameterToString(*varForms.ConsumeType, "")) + } + if varForms != nil && varForms.BillType != nil { + varFormParams.Add("billType", parameterToString(*varForms.BillType, "")) + } + if varForms != nil && varForms.PageNumber != nil { + varFormParams.Add("pageNumber", parameterToString(*varForms.PageNumber, "")) + } + if varForms != nil && varForms.PageSize != nil { + varFormParams.Add("pageSize", parameterToString(*varForms.PageSize, "")) + } + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// GetGameInstanceContainerRatio +/* + * + * @param varForms model.ConsoleAdminGetGameInstanceContainerRatioForms + */ +func (s *ConsoleAdminApiService) GetGameInstanceContainerRatio( + varForms *model.ConsoleAdminGetGameInstanceContainerRatioForms, +) (model.ConsoleAdminGetGameInstanceContainerRatioResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.ConsoleAdminGetGameInstanceContainerRatioResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/consoleAdmin/getGameInstanceContainerRatio" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + varFormParams.Add("commodityInstanceId", parameterToString(varForms.CommodityInstanceId, "")) + varFormParams.Add("games", parameterToString(varForms.Games, "multi")) + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// GetGameRecommendedInstance +/* + * + * @param varForms model.ConsoleAdminGetGameRecommendedInstanceForms + */ +func (s *ConsoleAdminApiService) GetGameRecommendedInstance( + varForms *model.ConsoleAdminGetGameRecommendedInstanceForms, +) (model.ConsoleAdminGetGameRecommendedInstanceResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.ConsoleAdminGetGameRecommendedInstanceResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/consoleAdmin/getGameRecommendedInstance" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + varFormParams.Add("game", parameterToString(varForms.Game, "")) + varFormParams.Add("commodityInstanceIds", parameterToString(varForms.CommodityInstanceIds, "multi")) + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// GetGameVersion +/* + * + * @param varForms model.ConsoleAdminGetGameVersionForms + */ +func (s *ConsoleAdminApiService) GetGameVersion( + varForms *model.ConsoleAdminGetGameVersionForms, +) (model.ConsoleAdminGetGameVersionResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.ConsoleAdminGetGameVersionResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/consoleAdmin/getGameVersion" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + varFormParams.Add("versionId", parameterToString(varForms.VersionId, "")) + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// GetGameVersionProgress +/* + * + * @param varForms model.ConsoleAdminGetGameVersionProgressForms + */ +func (s *ConsoleAdminApiService) GetGameVersionProgress( + varForms *model.ConsoleAdminGetGameVersionProgressForms, +) (model.ConsoleAdminGetGameVersionProgressResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.ConsoleAdminGetGameVersionProgressResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/consoleAdmin/getGameVersionProgress" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + varFormParams.Add("taskId", parameterToString(varForms.TaskId, "")) + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// GetOrder +/* + * 查询订单 + * @param varForms model.ConsoleAdminGetOrderForms + */ +func (s *ConsoleAdminApiService) GetOrder( + varForms *model.ConsoleAdminGetOrderForms, +) (model.ConsoleAdminGetOrderResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.ConsoleAdminGetOrderResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/consoleAdmin/getOrder" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + varFormParams.Add("orderId", parameterToString(varForms.OrderId, "")) + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// ListActivateableInstances +/* + * + * @param varForms model.ConsoleAdminListActivateableInstancesForms + */ +func (s *ConsoleAdminApiService) ListActivateableInstances( + varForms *model.ConsoleAdminListActivateableInstancesForms, +) (model.ConsoleAdminListActivateableInstancesResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.ConsoleAdminListActivateableInstancesResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/consoleAdmin/listActivateableInstances" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + varFormParams.Add("projectId", parameterToString(varForms.ProjectId, "")) + varFormParams.Add("versionId", parameterToString(varForms.VersionId, "")) + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// ListActivatedInstances +/* + * + * @param varForms model.ConsoleAdminListActivatedInstancesForms + */ +func (s *ConsoleAdminApiService) ListActivatedInstances( + varForms *model.ConsoleAdminListActivatedInstancesForms, +) (model.ConsoleAdminListActivatedInstancesResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.ConsoleAdminListActivatedInstancesResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/consoleAdmin/listActivatedInstances" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + varFormParams.Add("gameId", parameterToString(varForms.GameId, "")) + varFormParams.Add("projectId", parameterToString(varForms.ProjectId, "")) + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// ListControllersOfGame +/* + * + * @param varForms model.ConsoleAdminListControllersOfGameForms + */ +func (s *ConsoleAdminApiService) ListControllersOfGame( + varForms *model.ConsoleAdminListControllersOfGameForms, +) (model.ConsoleAdminListControllersOfGameResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.ConsoleAdminListControllersOfGameResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/consoleAdmin/listControllersOfGame" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + varFormParams.Add("gameId", parameterToString(varForms.GameId, "")) + if varForms != nil && varForms.NextToken != nil { + varFormParams.Add("nextToken", parameterToString(*varForms.NextToken, "")) + } + if varForms != nil && varForms.MaxResults != nil { + varFormParams.Add("maxResults", parameterToString(*varForms.MaxResults, "")) + } + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// ListDeployableInstances +/* + * + * @param varForms model.ConsoleAdminListDeployableInstancesForms + */ +func (s *ConsoleAdminApiService) ListDeployableInstances( + varForms *model.ConsoleAdminListDeployableInstancesForms, +) (model.ConsoleAdminListDeployableInstancesResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.ConsoleAdminListDeployableInstancesResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/consoleAdmin/listDeployableInstances" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + varFormParams.Add("versionId", parameterToString(varForms.VersionId, "")) + varFormParams.Add("projectId", parameterToString(varForms.ProjectId, "")) + if varForms != nil && varForms.PageSize != nil { + varFormParams.Add("pageSize", parameterToString(*varForms.PageSize, "")) + } + if varForms != nil && varForms.PageNumber != nil { + varFormParams.Add("pageNumber", parameterToString(*varForms.PageNumber, "")) + } + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// ListGameCcu +/* + * 分游戏实时并发 + * @param varForms model.ConsoleAdminListGameCcuForms + */ +func (s *ConsoleAdminApiService) ListGameCcu( + varForms *model.ConsoleAdminListGameCcuForms, +) (model.ConsoleAdminListGameCcuResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.ConsoleAdminListGameCcuResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/consoleAdmin/listGameCcu" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + if varForms != nil && varForms.MixGameIds != nil { + varFormParams.Add("mixGameIds", parameterToString(*varForms.MixGameIds, "")) + } + if varForms != nil && varForms.ProjectIds != nil { + varFormParams.Add("projectIds", parameterToString(*varForms.ProjectIds, "")) + } + if varForms != nil && varForms.QueryTimeStart != nil { + varFormParams.Add("queryTimeStart", parameterToString(*varForms.QueryTimeStart, "")) + } + if varForms != nil && varForms.QueryTimeEnd != nil { + varFormParams.Add("queryTimeEnd", parameterToString(*varForms.QueryTimeEnd, "")) + } + if varForms != nil && varForms.PageNumber != nil { + varFormParams.Add("pageNumber", parameterToString(*varForms.PageNumber, "")) + } + if varForms != nil && varForms.PageSize != nil { + varFormParams.Add("pageSize", parameterToString(*varForms.PageSize, "")) + } + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// ListGameDeployDetailsOfProject +/* + * 获取项目下游戏部署版本信息。 + * @param varForms model.ConsoleAdminListGameDeployDetailsOfProjectForms + */ +func (s *ConsoleAdminApiService) ListGameDeployDetailsOfProject( + varForms *model.ConsoleAdminListGameDeployDetailsOfProjectForms, +) (model.ConsoleAdminListGameDeployDetailsOfProjectResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.ConsoleAdminListGameDeployDetailsOfProjectResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/consoleAdmin/listGameDeployDetailsOfProject" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + if varForms != nil && varForms.ProjectId != nil { + varFormParams.Add("projectId", parameterToString(*varForms.ProjectId, "")) + } + if varForms != nil && varForms.GameId != nil { + varFormParams.Add("gameId", parameterToString(*varForms.GameId, "")) + } + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// ListGameVersions +/* + * + * @param varForms model.ConsoleAdminListGameVersionsForms + */ +func (s *ConsoleAdminApiService) ListGameVersions( + varForms *model.ConsoleAdminListGameVersionsForms, +) (model.ConsoleAdminListGameVersionsResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.ConsoleAdminListGameVersionsResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/consoleAdmin/listGameVersions" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + if varForms != nil && varForms.NextToken != nil { + varFormParams.Add("nextToken", parameterToString(*varForms.NextToken, "")) + } + if varForms != nil && varForms.MaxResults != nil { + varFormParams.Add("maxResults", parameterToString(*varForms.MaxResults, "")) + } + varFormParams.Add("gameId", parameterToString(varForms.GameId, "")) + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// ListGames +/* + * + * @param varForms model.ConsoleAdminListGamesForms + */ +func (s *ConsoleAdminApiService) ListGames( + varForms *model.ConsoleAdminListGamesForms, +) (model.ConsoleAdminListGamesResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.ConsoleAdminListGamesResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/consoleAdmin/listGames" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + if varForms != nil && varForms.NextToken != nil { + varFormParams.Add("nextToken", parameterToString(*varForms.NextToken, "")) + } + if varForms != nil && varForms.MaxResults != nil { + varFormParams.Add("maxResults", parameterToString(*varForms.MaxResults, "")) + } + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// ListInstancesOfProject +/* + * 分页获取项目中的实例 + * @param varForms model.ConsoleAdminListInstancesOfProjectForms + */ +func (s *ConsoleAdminApiService) ListInstancesOfProject( + varForms *model.ConsoleAdminListInstancesOfProjectForms, +) (model.ConsoleAdminListInstancesOfProjectResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.ConsoleAdminListInstancesOfProjectResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/consoleAdmin/listInstancesOfProject" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + if varForms != nil && varForms.NextToken != nil { + varFormParams.Add("nextToken", parameterToString(*varForms.NextToken, "")) + } + if varForms != nil && varForms.MaxResult != nil { + varFormParams.Add("maxResult", parameterToString(*varForms.MaxResult, "")) + } + varFormParams.Add("projectId", parameterToString(varForms.ProjectId, "")) + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// ListMonthBill +/* + * 月度账单列表 + * @param varForms model.ConsoleAdminListMonthBillForms + */ +func (s *ConsoleAdminApiService) ListMonthBill( + varForms *model.ConsoleAdminListMonthBillForms, +) (model.ConsoleAdminListMonthBillResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.ConsoleAdminListMonthBillResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/consoleAdmin/listMonthBill" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + varFormParams.Add("accountingPeriodFrom", parameterToString(varForms.AccountingPeriodFrom, "")) + varFormParams.Add("accountingPeriodTo", parameterToString(varForms.AccountingPeriodTo, "")) + if varForms != nil && varForms.Status != nil { + varFormParams.Add("status", parameterToString(*varForms.Status, "")) + } + if varForms != nil && varForms.PageNumber != nil { + varFormParams.Add("pageNumber", parameterToString(*varForms.PageNumber, "")) + } + if varForms != nil && varForms.PageSize != nil { + varFormParams.Add("pageSize", parameterToString(*varForms.PageSize, "")) + } + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// ListProjects +/* + * + * @param varForms model.ConsoleAdminListProjectsForms + */ +func (s *ConsoleAdminApiService) ListProjects( + varForms *model.ConsoleAdminListProjectsForms, +) (model.ConsoleAdminListProjectsResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.ConsoleAdminListProjectsResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/consoleAdmin/listProjects" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + if varForms != nil && varForms.NextToken != nil { + varFormParams.Add("nextToken", parameterToString(*varForms.NextToken, "")) + } + if varForms != nil && varForms.MaxResults != nil { + varFormParams.Add("maxResults", parameterToString(*varForms.MaxResults, "")) + } + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// ListVersionDeployInstances +/* + * 获取项目下游戏版本的部署实例信息。 + * @param varForms model.ConsoleAdminListVersionDeployInstancesForms + */ +func (s *ConsoleAdminApiService) ListVersionDeployInstances( + varForms *model.ConsoleAdminListVersionDeployInstancesForms, +) (model.ConsoleAdminListVersionDeployInstancesResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.ConsoleAdminListVersionDeployInstancesResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/consoleAdmin/listVersionDeployInstances" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + if varForms != nil && varForms.ProjectId != nil { + varFormParams.Add("projectId", parameterToString(*varForms.ProjectId, "")) + } + if varForms != nil && varForms.GameId != nil { + varFormParams.Add("gameId", parameterToString(*varForms.GameId, "")) + } + if varForms != nil && varForms.VersionId != nil { + varFormParams.Add("versionId", parameterToString(*varForms.VersionId, "")) + } + if varForms != nil && varForms.DeployStatus != nil { + varFormParams.Add("deployStatus", parameterToString(*varForms.DeployStatus, "")) + } + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// QueryAdaptResultByVersionId +/* + * 查询适配结果 + * @param varForms model.ConsoleAdminQueryAdaptResultByVersionIdForms + */ +func (s *ConsoleAdminApiService) QueryAdaptResultByVersionId( + varForms *model.ConsoleAdminQueryAdaptResultByVersionIdForms, +) (model.ConsoleAdminQueryAdaptResultByVersionIdResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.ConsoleAdminQueryAdaptResultByVersionIdResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/consoleAdmin/queryAdaptResultByVersionId" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + varFormParams.Add("mixVersionId", parameterToString(varForms.MixVersionId, "")) + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// RecommendSpecification +/* + * + * @param varForms model.ConsoleAdminRecommendSpecificationForms + */ +func (s *ConsoleAdminApiService) RecommendSpecification( + varForms *model.ConsoleAdminRecommendSpecificationForms, +) (model.ConsoleAdminRecommendSpecificationResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.ConsoleAdminRecommendSpecificationResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/consoleAdmin/recommendSpecification" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + varFormParams.Add("gameId", parameterToString(varForms.GameId, "")) + varFormParams.Add("gameVersionId", parameterToString(varForms.GameVersionId, "")) + varFormParams.Add("platformType", parameterToString(varForms.PlatformType, "")) + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// RemoveGameFromProject +/* + * + * @param varForms model.ConsoleAdminRemoveGameFromProjectForms + */ +func (s *ConsoleAdminApiService) RemoveGameFromProject( + varForms *model.ConsoleAdminRemoveGameFromProjectForms, +) (model.ConsoleAdminRemoveGameFromProjectResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.ConsoleAdminRemoveGameFromProjectResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/consoleAdmin/removeGameFromProject" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + varFormParams.Add("projectId", parameterToString(varForms.ProjectId, "")) + varFormParams.Add("gameId", parameterToString(varForms.GameId, "")) + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// RtOverView +/* + * 实时并发数 + * @param varForms model.ConsoleAdminRtOverViewForms + */ +func (s *ConsoleAdminApiService) RtOverView( + varForms *model.ConsoleAdminRtOverViewForms, +) (model.ConsoleAdminRtOverViewResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.ConsoleAdminRtOverViewResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/consoleAdmin/rtOverView" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + if varForms != nil && varForms.MixGameIds != nil { + varFormParams.Add("mixGameIds", parameterToString(*varForms.MixGameIds, "")) + } + if varForms != nil && varForms.ProjectIds != nil { + varFormParams.Add("projectIds", parameterToString(*varForms.ProjectIds, "")) + } + if varForms != nil && varForms.QueryTimeStart != nil { + varFormParams.Add("queryTimeStart", parameterToString(*varForms.QueryTimeStart, "")) + } + if varForms != nil && varForms.QueryTimeEnd != nil { + varFormParams.Add("queryTimeEnd", parameterToString(*varForms.QueryTimeEnd, "")) + } + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// RtTrend +/* + * 实时并发趋势图 + * @param varForms model.ConsoleAdminRtTrendForms + */ +func (s *ConsoleAdminApiService) RtTrend( + varForms *model.ConsoleAdminRtTrendForms, +) (model.ConsoleAdminRtTrendResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.ConsoleAdminRtTrendResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/consoleAdmin/rtTrend" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + if varForms != nil && varForms.GroupType != nil { + varFormParams.Add("groupType", parameterToString(*varForms.GroupType, "")) + } + if varForms != nil && varForms.IndicatorTypes != nil { + varFormParams.Add("indicatorTypes", parameterToString(*varForms.IndicatorTypes, "")) + } + if varForms != nil && varForms.MixGameIds != nil { + varFormParams.Add("mixGameIds", parameterToString(*varForms.MixGameIds, "")) + } + if varForms != nil && varForms.ProjectIds != nil { + varFormParams.Add("projectIds", parameterToString(*varForms.ProjectIds, "")) + } + if varForms != nil && varForms.QueryTimeStart != nil { + varFormParams.Add("queryTimeStart", parameterToString(*varForms.QueryTimeStart, "")) + } + if varForms != nil && varForms.QueryTimeEnd != nil { + varFormParams.Add("queryTimeEnd", parameterToString(*varForms.QueryTimeEnd, "")) + } + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// SubmitDeployment +/* + * + * @param varForms model.ConsoleAdminSubmitDeploymentForms + */ +func (s *ConsoleAdminApiService) SubmitDeployment( + varForms *model.ConsoleAdminSubmitDeploymentForms, +) (model.ConsoleAdminSubmitDeploymentResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.ConsoleAdminSubmitDeploymentResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/consoleAdmin/submitDeployment" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + varFormParams.Add("gameId", parameterToString(varForms.GameId, "")) + varFormParams.Add("projectId", parameterToString(varForms.ProjectId, "")) + varFormParams.Add("versionId", parameterToString(varForms.VersionId, "")) + varFormParams.Add("cloudGameInstanceIds", parameterToString(varForms.CloudGameInstanceIds, "")) + varFormParams.Add("operationType", parameterToString(varForms.OperationType, "")) + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// UploadGameVersionByDownload +/* + * + * @param varForms model.ConsoleAdminUploadGameVersionByDownloadForms + */ +func (s *ConsoleAdminApiService) UploadGameVersionByDownload( + varForms *model.ConsoleAdminUploadGameVersionByDownloadForms, +) (model.ConsoleAdminUploadGameVersionByDownloadResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.ConsoleAdminUploadGameVersionByDownloadResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/consoleAdmin/uploadGameVersionByDownload" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + varFormParams.Add("hash", parameterToString(varForms.Hash, "")) + varFormParams.Add("gameId", parameterToString(varForms.GameId, "")) + varFormParams.Add("downloadType", parameterToString(varForms.DownloadType, "")) + varFormParams.Add("versionName", parameterToString(varForms.VersionName, "")) + if varForms != nil && varForms.OsManifest != nil { + varFormParams.Add("osManifest", parameterToString(*varForms.OsManifest, "")) + } + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} From 04adc462d3540c2dd705d70725ef63b01079e0bd Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:20:36 +0800 Subject: [PATCH 247/255] feat: update --- client/api/dispatch_api.go | 1482 ++++++++++++++++++++++++++++++++++++ 1 file changed, 1482 insertions(+) create mode 100644 client/api/dispatch_api.go diff --git a/client/api/dispatch_api.go b/client/api/dispatch_api.go new file mode 100644 index 00000000..7a06d335 --- /dev/null +++ b/client/api/dispatch_api.go @@ -0,0 +1,1482 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package api + +import ( + "github.com/aliyun/alibabacloud-yjopenapi-go-client/client/model" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +type DispatchApiService service + + +// BatchStopGame +/* + * + * @param varForms model.BatchStopGameForms + */ +func (s *DispatchApiService) BatchStopGame( + varForms *model.BatchStopGameForms, +) (model.BatchStopGameResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.BatchStopGameResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/batchStopGame" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + varFormParams.Add("gameId", parameterToString(varForms.GameId, "")) + varFormParams.Add("appKey", parameterToString(varForms.AppKey, "")) + varFormParams.Add("token", parameterToString(varForms.Token, "")) + if varForms != nil && varForms.Reason != nil { + varFormParams.Add("reason", parameterToString(*varForms.Reason, "")) + } + if varForms != nil && varForms.TrackInfo != nil { + varFormParams.Add("trackInfo", parameterToString(*varForms.TrackInfo, "")) + } + if varForms != nil && varForms.Tags != nil { + varFormParams.Add("tags", parameterToString(*varForms.Tags, "")) + } + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// CancelGameHang +/* + * 取消游戏挂机 + * @param varForms model.CancelGameHangForms + */ +func (s *DispatchApiService) CancelGameHang( + varForms *model.CancelGameHangForms, +) (model.CancelGameHangResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.CancelGameHangResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/cancelGameHang" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + varFormParams.Add("gameSession", parameterToString(varForms.GameSession, "")) + varFormParams.Add("appKey", parameterToString(varForms.AppKey, "")) + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// ClientNotify +/* + * clientNotify + * @param varForms model.ClientNotifyForms + */ +func (s *DispatchApiService) ClientNotify( + varForms *model.ClientNotifyForms, +) (model.ClientNotifyResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.ClientNotifyResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/clientNotify" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + varFormParams.Add("appKey", parameterToString(varForms.AppKey, "")) + varFormParams.Add("gameSession", parameterToString(varForms.GameSession, "")) + varFormParams.Add("value", parameterToString(varForms.Value, "")) + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// GameNotify +/* + * 游戏通知接口 + * @param varForms model.GameNotifyForms + */ +func (s *DispatchApiService) GameNotify( + varForms *model.GameNotifyForms, +) (model.GameNotifyResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.GameNotifyResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/gameNotify" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + varFormParams.Add("appKey", parameterToString(varForms.AppKey, "")) + varFormParams.Add("gameSession", parameterToString(varForms.GameSession, "")) + varFormParams.Add("type", parameterToString(varForms.Type_, "")) + if varForms != nil && varForms.Value != nil { + varFormParams.Add("value", parameterToString(*varForms.Value, "")) + } + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// GetGameConcurrency +/* + * 调用GetGameConcurrency获取游戏当前并发数 + * @param varForms model.GetGameConcurrencyForms + */ +func (s *DispatchApiService) GetGameConcurrency( + varForms *model.GetGameConcurrencyForms, +) (model.GetGameConcurrencyResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.GetGameConcurrencyResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/getGameConcurrency" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + varFormParams.Add("gameId", parameterToString(varForms.GameId, "")) + varFormParams.Add("appKey", parameterToString(varForms.AppKey, "")) + if varForms != nil && varForms.QueryQueueConcurrency != nil { + varFormParams.Add("queryQueueConcurrency", parameterToString(*varForms.QueryQueueConcurrency, "")) + } + if varForms != nil && varForms.QueueUserLevel != nil { + varFormParams.Add("queueUserLevel", parameterToString(*varForms.QueueUserLevel, "")) + } + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// GetStock +/* + * 调用GetStock获取游戏当前库存 + * @param varForms model.GetStockForms + */ +func (s *DispatchApiService) GetStock( + varForms *model.GetStockForms, +) (model.GetStockResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.GetStockResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/getStock" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + if varForms != nil && varForms.GameId != nil { + varFormParams.Add("gameId", parameterToString(*varForms.GameId, "")) + } + varFormParams.Add("appKey", parameterToString(varForms.AppKey, "")) + varFormParams.Add("type", parameterToString(varForms.Type_, "")) + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// GetStopGameToken +/* + * 全量踢下线获取token + * @param varForms model.GetStopGameTokenForms + */ +func (s *DispatchApiService) GetStopGameToken( + varForms *model.GetStopGameTokenForms, +) (model.GetStopGameTokenResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.GetStopGameTokenResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/getStopGameToken" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + varFormParams.Add("gameId", parameterToString(varForms.GameId, "")) + varFormParams.Add("appKey", parameterToString(varForms.AppKey, "")) + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// ListGameServerIp +/* + * + * @param varForms model.ListGameServerIpForms + */ +func (s *DispatchApiService) ListGameServerIp( + varForms *model.ListGameServerIpForms, +) (model.ListGameServerIpResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.ListGameServerIpResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/listGameServerIp" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + if varForms != nil && varForms.PageSize != nil { + varFormParams.Add("pageSize", parameterToString(*varForms.PageSize, "")) + } + if varForms != nil && varForms.NextToken != nil { + varFormParams.Add("nextToken", parameterToString(*varForms.NextToken, "")) + } + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// QueryGameHang +/* + * 查询游戏挂机状态 + * @param varForms model.QueryGameHangForms + */ +func (s *DispatchApiService) QueryGameHang( + varForms *model.QueryGameHangForms, +) (model.QueryGameHangResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.QueryGameHangResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/queryGameHang" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + varFormParams.Add("gameSession", parameterToString(varForms.GameSession, "")) + varFormParams.Add("appKey", parameterToString(varForms.AppKey, "")) + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// QuerySessionStatus +/* + * 查询会话当前状态 + * @param varForms model.QuerySessionStatusForms + */ +func (s *DispatchApiService) QuerySessionStatus( + varForms *model.QuerySessionStatusForms, +) (model.QuerySessionStatusResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.QuerySessionStatusResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/querySessionStatus" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + varFormParams.Add("gameSession", parameterToString(varForms.GameSession, "")) + varFormParams.Add("appKey", parameterToString(varForms.AppKey, "")) + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// ReplaceSlot +/* + * replaceSlot + * @param varForms model.ReplaceSlotForms + */ +func (s *DispatchApiService) ReplaceSlot( + varForms *model.ReplaceSlotForms, +) (model.ReplaceSlotResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.ReplaceSlotResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/replaceSlot" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + varFormParams.Add("replaceSession", parameterToString(varForms.ReplaceSession, "")) + varFormParams.Add("accountId", parameterToString(varForms.AccountId, "")) + varFormParams.Add("gameId", parameterToString(varForms.GameId, "")) + varFormParams.Add("appKey", parameterToString(varForms.AppKey, "")) + if varForms != nil && varForms.BizParam != nil { + varFormParams.Add("bizParam", parameterToString(*varForms.BizParam, "")) + } + if varForms != nil && varForms.ClientIp != nil { + varFormParams.Add("clientIp", parameterToString(*varForms.ClientIp, "")) + } + if varForms != nil && varForms.Tags != nil { + varFormParams.Add("tags", parameterToString(*varForms.Tags, "")) + } + if varForms != nil && varForms.Codec != nil { + varFormParams.Add("codec", parameterToString(*varForms.Codec, "")) + } + if varForms != nil && varForms.Resolution != nil { + varFormParams.Add("resolution", parameterToString(*varForms.Resolution, "")) + } + if varForms != nil && varForms.BitRate != nil { + varFormParams.Add("bitRate", parameterToString(*varForms.BitRate, "")) + } + if varForms != nil && varForms.Fps != nil { + varFormParams.Add("fps", parameterToString(*varForms.Fps, "")) + } + if varForms != nil && varForms.GameCmdParam != nil { + varFormParams.Add("gameCmdParam", parameterToString(*varForms.GameCmdParam, "")) + } + if varForms != nil && varForms.UserLevel != nil { + varFormParams.Add("userLevel", parameterToString(*varForms.UserLevel, "")) + } + if varForms != nil && varForms.StartParam != nil { + varFormParams.Add("startParam", parameterToString(*varForms.StartParam, "")) + } + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// SetGameAlive +/* + * 设置游戏可运行时长 + * @param varForms model.SetGameAliveForms + */ +func (s *DispatchApiService) SetGameAlive( + varForms *model.SetGameAliveForms, +) (model.SetGameAliveResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.SetGameAliveResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/setGameAlive" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + varFormParams.Add("gameSession", parameterToString(varForms.GameSession, "")) + varFormParams.Add("appKey", parameterToString(varForms.AppKey, "")) + varFormParams.Add("keepAlive", parameterToString(varForms.KeepAlive, "")) + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// SetGameHang +/* + * 设置游戏挂机 + * @param varForms model.SetGameHangForms + */ +func (s *DispatchApiService) SetGameHang( + varForms *model.SetGameHangForms, +) (model.SetGameHangResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.SetGameHangResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/setGameHang" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + varFormParams.Add("gameSession", parameterToString(varForms.GameSession, "")) + varFormParams.Add("appKey", parameterToString(varForms.AppKey, "")) + varFormParams.Add("duration", parameterToString(varForms.Duration, "")) + if varForms != nil && varForms.KickInTheGame != nil { + varFormParams.Add("kickInTheGame", parameterToString(*varForms.KickInTheGame, "")) + } + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// StopGame +/* + * 服务端发起,停止某个用户的某个游戏的某个会话 + * @param varForms model.StopGameForms + */ +func (s *DispatchApiService) StopGame( + varForms *model.StopGameForms, +) (model.StopGameResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.StopGameResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/stopGame" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + varFormParams.Add("accountId", parameterToString(varForms.AccountId, "")) + varFormParams.Add("gameId", parameterToString(varForms.GameId, "")) + varFormParams.Add("appKey", parameterToString(varForms.AppKey, "")) + varFormParams.Add("gameSession", parameterToString(varForms.GameSession, "")) + if varForms != nil && varForms.Reason != nil { + varFormParams.Add("reason", parameterToString(*varForms.Reason, "")) + } + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// StopPreopenContainer +/* + * 停止预开容器 + * @param varForms model.StopPreopenContainerForms + */ +func (s *DispatchApiService) StopPreopenContainer( + varForms *model.StopPreopenContainerForms, +) (model.StopPreopenContainerResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.StopPreopenContainerResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/stopPreopenContainer" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + varFormParams.Add("appKey", parameterToString(varForms.AppKey, "")) + varFormParams.Add("gameId", parameterToString(varForms.GameId, "")) + if varForms != nil && varForms.NumberOfBatches != nil { + varFormParams.Add("numberOfBatches", parameterToString(*varForms.NumberOfBatches, "")) + } + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// TryToGetSlot +/* + * 为用户调度分配游戏容器,容器一旦分配成功会被锁住,一段时间内不再分配给其他用户,过期释放。 + * @param varForms model.TryToGetSlotForms + */ +func (s *DispatchApiService) TryToGetSlot( + varForms *model.TryToGetSlotForms, +) (model.TryToGetSlotResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.TryToGetSlotResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/tryToGetSlot" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + varFormParams.Add("accountId", parameterToString(varForms.AccountId, "")) + varFormParams.Add("gameId", parameterToString(varForms.GameId, "")) + varFormParams.Add("appKey", parameterToString(varForms.AppKey, "")) + if varForms != nil && varForms.RegionId != nil { + varFormParams.Add("regionId", parameterToString(*varForms.RegionId, "")) + } + if varForms != nil && varForms.ReConnect != nil { + varFormParams.Add("reConnect", parameterToString(*varForms.ReConnect, "")) + } + if varForms != nil && varForms.BizParam != nil { + varFormParams.Add("bizParam", parameterToString(*varForms.BizParam, "")) + } + if varForms != nil && varForms.ClientIp != nil { + varFormParams.Add("clientIp", parameterToString(*varForms.ClientIp, "")) + } + if varForms != nil && varForms.Tags != nil { + varFormParams.Add("tags", parameterToString(*varForms.Tags, "")) + } + if varForms != nil && varForms.UserLevel != nil { + varFormParams.Add("userLevel", parameterToString(*varForms.UserLevel, "")) + } + if varForms != nil && varForms.Codec != nil { + varFormParams.Add("codec", parameterToString(*varForms.Codec, "")) + } + if varForms != nil && varForms.Resolution != nil { + varFormParams.Add("resolution", parameterToString(*varForms.Resolution, "")) + } + if varForms != nil && varForms.BitRate != nil { + varFormParams.Add("bitRate", parameterToString(*varForms.BitRate, "")) + } + if varForms != nil && varForms.Fps != nil { + varFormParams.Add("fps", parameterToString(*varForms.Fps, "")) + } + if varForms != nil && varForms.GameCmdParam != nil { + varFormParams.Add("gameCmdParam", parameterToString(*varForms.GameCmdParam, "")) + } + if varForms != nil && varForms.StartParam != nil { + varFormParams.Add("startParam", parameterToString(*varForms.StartParam, "")) + } + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// TryToGetSlots +/* + * tryToGetSlots + * @param varForms model.TryToGetSlotsForms + */ +func (s *DispatchApiService) TryToGetSlots( + varForms *model.TryToGetSlotsForms, +) (model.TryToGetSlotsResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.TryToGetSlotsResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/tryToGetSlots" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + varFormParams.Add("appKey", parameterToString(varForms.AppKey, "")) + varFormParams.Add("parallelSchedule", parameterToString(varForms.ParallelSchedule, "")) + varFormParams.Add("requests", parameterToString(varForms.Requests, "multi")) + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// UpdatePreopenStrategy +/* + * 更新预开预起策略 + * @param varForms model.UpdatePreopenStrategyForms + */ +func (s *DispatchApiService) UpdatePreopenStrategy( + varForms *model.UpdatePreopenStrategyForms, +) (model.UpdatePreopenStrategyResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.UpdatePreopenStrategyResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/updatePreopenStrategy" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + varFormParams.Add("appKey", parameterToString(varForms.AppKey, "")) + varFormParams.Add("gameId", parameterToString(varForms.GameId, "")) + if varForms != nil && varForms.PreStartCmd != nil { + varFormParams.Add("preStartCmd", parameterToString(*varForms.PreStartCmd, "")) + } + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} From 18c431d920d460ad0ef11310f65e0b4757e36457 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:20:38 +0800 Subject: [PATCH 248/255] feat: update --- client/api/live_api.go | 254 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 254 insertions(+) create mode 100644 client/api/live_api.go diff --git a/client/api/live_api.go b/client/api/live_api.go new file mode 100644 index 00000000..e6e2d1db --- /dev/null +++ b/client/api/live_api.go @@ -0,0 +1,254 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package api + +import ( + "github.com/aliyun/alibabacloud-yjopenapi-go-client/client/model" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +type LiveApiService service + + +// QueryStatus +/* + * + * @param varForms model.LiveQueryStatusForms + */ +func (s *LiveApiService) QueryStatus( + varForms *model.LiveQueryStatusForms, +) (model.LiveQueryStatusResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.LiveQueryStatusResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/live/queryStatus" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + varFormParams.Add("appKey", parameterToString(varForms.AppKey, "")) + varFormParams.Add("gameSession", parameterToString(varForms.GameSession, "")) + if varForms != nil && varForms.LiveId != nil { + varFormParams.Add("liveId", parameterToString(*varForms.LiveId, "")) + } + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// StartGameLive +/* + * + * @param varForms model.LiveStartGameLiveForms + */ +func (s *LiveApiService) StartGameLive( + varForms *model.LiveStartGameLiveForms, +) (model.LiveStartGameLiveResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.LiveStartGameLiveResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/live/startGameLive" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + varFormParams.Add("appKey", parameterToString(varForms.AppKey, "")) + varFormParams.Add("gameSession", parameterToString(varForms.GameSession, "")) + varFormParams.Add("serverUrl", parameterToString(varForms.ServerUrl, "")) + varFormParams.Add("streamKey", parameterToString(varForms.StreamKey, "")) + if varForms != nil && varForms.Config != nil { + varFormParams.Add("config", parameterToString(*varForms.Config, "")) + } + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// StopGameLive +/* + * + * @param varForms model.LiveStopGameLiveForms + */ +func (s *LiveApiService) StopGameLive( + varForms *model.LiveStopGameLiveForms, +) (model.LiveStopGameLiveResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.LiveStopGameLiveResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/live/stopGameLive" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + varFormParams.Add("appKey", parameterToString(varForms.AppKey, "")) + varFormParams.Add("gameSession", parameterToString(varForms.GameSession, "")) + if varForms != nil && varForms.LiveId != nil { + varFormParams.Add("liveId", parameterToString(*varForms.LiveId, "")) + } + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} From 62efc37bc1455e481b829ef6e0cb3414a8572ba1 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:20:39 +0800 Subject: [PATCH 249/255] feat: update --- client/api/multiplay_api.go | 484 ++++++++++++++++++++++++++++++++++++ 1 file changed, 484 insertions(+) create mode 100644 client/api/multiplay_api.go diff --git a/client/api/multiplay_api.go b/client/api/multiplay_api.go new file mode 100644 index 00000000..fcfb5928 --- /dev/null +++ b/client/api/multiplay_api.go @@ -0,0 +1,484 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package api + +import ( + "github.com/aliyun/alibabacloud-yjopenapi-go-client/client/model" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +type MultiplayApiService service + + +// Close +/* + * + * @param varForms model.MultiplayCloseForms + */ +func (s *MultiplayApiService) Close( + varForms *model.MultiplayCloseForms, +) (model.MultiplayCloseResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.MultiplayCloseResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/multiplay/close" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + varFormParams.Add("mpId", parameterToString(varForms.MpId, "")) + if varForms != nil && varForms.Reason != nil { + varFormParams.Add("reason", parameterToString(*varForms.Reason, "")) + } + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// Init +/* + * + * @param varForms model.MultiplayInitForms + */ +func (s *MultiplayApiService) Init( + varForms *model.MultiplayInitForms, +) (model.MultiplayInitResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.MultiplayInitResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/multiplay/init" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + varFormParams.Add("gameSession", parameterToString(varForms.GameSession, "")) + varFormParams.Add("appKey", parameterToString(varForms.AppKey, "")) + if varForms != nil && varForms.Config != nil { + varFormParams.Add("config", parameterToString(*varForms.Config, "")) + } + if varForms != nil && varForms.Tokens != nil { + varFormParams.Add("tokens", parameterToString(*varForms.Tokens, "multi")) + } + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// Join +/* + * + * @param varForms model.MultiplayJoinForms + */ +func (s *MultiplayApiService) Join( + varForms *model.MultiplayJoinForms, +) (model.MultiplayJoinResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.MultiplayJoinResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/multiplay/join" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + varFormParams.Add("mpId", parameterToString(varForms.MpId, "")) + varFormParams.Add("accountId", parameterToString(varForms.AccountId, "")) + if varForms != nil && varForms.ControlId != nil { + varFormParams.Add("controlId", parameterToString(*varForms.ControlId, "")) + } + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// Leave +/* + * + * @param varForms model.MultiplayLeaveForms + */ +func (s *MultiplayApiService) Leave( + varForms *model.MultiplayLeaveForms, +) (model.MultiplayLeaveResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.MultiplayLeaveResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/multiplay/leave" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + varFormParams.Add("mpId", parameterToString(varForms.MpId, "")) + varFormParams.Add("kickOut", parameterToString(varForms.KickOut, "")) + if varForms != nil && varForms.Reason != nil { + varFormParams.Add("reason", parameterToString(*varForms.Reason, "")) + } + varFormParams.Add("tokenIds", parameterToString(varForms.TokenIds, "multi")) + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// Modify +/* + * + * @param varForms model.MultiplayModifyForms + */ +func (s *MultiplayApiService) Modify( + varForms *model.MultiplayModifyForms, +) (model.MultiplayModifyResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.MultiplayModifyResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/multiplay/modify" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + varFormParams.Add("mpId", parameterToString(varForms.MpId, "")) + if varForms != nil && varForms.Tokens != nil { + varFormParams.Add("tokens", parameterToString(*varForms.Tokens, "multi")) + } + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// Query +/* + * + * @param varForms model.MultiplayQueryForms + */ +func (s *MultiplayApiService) Query( + varForms *model.MultiplayQueryForms, +) (model.MultiplayQueryResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.MultiplayQueryResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/multiplay/query" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + varFormParams.Add("mpId", parameterToString(varForms.MpId, "")) + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} From dcbd3c9487c54313e1620634c5e9a97031f53076 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:20:40 +0800 Subject: [PATCH 250/255] feat: update --- client/api/token_api.go | 162 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 162 insertions(+) create mode 100644 client/api/token_api.go diff --git a/client/api/token_api.go b/client/api/token_api.go new file mode 100644 index 00000000..30ad2ce4 --- /dev/null +++ b/client/api/token_api.go @@ -0,0 +1,162 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package api + +import ( + "github.com/aliyun/alibabacloud-yjopenapi-go-client/client/model" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +type TokenApiService service + + +// GetPair +/* + * 获取临时安全令牌(二元组) + */ +func (s *TokenApiService) GetPair( + +) (model.GetPairResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.GetPairResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/sts?type=pair" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// GetTriple +/* + * 获取临时安全令牌 + */ +func (s *TokenApiService) GetTriple( + +) (model.GetTripleResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.GetTripleResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/sts" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} From 7bf3ced450df58a50f8fb86b652eca43cf214580 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:20:42 +0800 Subject: [PATCH 251/255] feat: update --- client/api/usercontroller_api.go | 483 +++++++++++++++++++++++++++++++ 1 file changed, 483 insertions(+) create mode 100644 client/api/usercontroller_api.go diff --git a/client/api/usercontroller_api.go b/client/api/usercontroller_api.go new file mode 100644 index 00000000..66e8ba28 --- /dev/null +++ b/client/api/usercontroller_api.go @@ -0,0 +1,483 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package api + +import ( + "github.com/aliyun/alibabacloud-yjopenapi-go-client/client/model" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +type UsercontrollerApiService service + + +// DeleteGameArchive +/* + * + * @param varForms model.UsercontrollerDeleteGameArchiveForms + */ +func (s *UsercontrollerApiService) DeleteGameArchive( + varForms *model.UsercontrollerDeleteGameArchiveForms, +) (model.UsercontrollerDeleteGameArchiveResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.UsercontrollerDeleteGameArchiveResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/usercontroller/deleteGameArchive" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + varFormParams.Add("accountId", parameterToString(varForms.AccountId, "")) + varFormParams.Add("gameId", parameterToString(varForms.GameId, "")) + varFormParams.Add("archiveId", parameterToString(varForms.ArchiveId, "")) + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// GetGameTrialSurplusDuration +/* + * + * @param varForms model.UsercontrollerGetGameTrialSurplusDurationForms + */ +func (s *UsercontrollerApiService) GetGameTrialSurplusDuration( + varForms *model.UsercontrollerGetGameTrialSurplusDurationForms, +) (model.UsercontrollerGetGameTrialSurplusDurationResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.UsercontrollerGetGameTrialSurplusDurationResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/usercontroller/getGameTrialSurplusDuration" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + varFormParams.Add("accountId", parameterToString(varForms.AccountId, "")) + varFormParams.Add("gameId", parameterToString(varForms.GameId, "")) + varFormParams.Add("projectId", parameterToString(varForms.ProjectId, "")) + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// GetUserGameArchive +/* + * + * @param varForms model.UsercontrollerGetUserGameArchiveForms + */ +func (s *UsercontrollerApiService) GetUserGameArchive( + varForms *model.UsercontrollerGetUserGameArchiveForms, +) (model.UsercontrollerGetUserGameArchiveResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.UsercontrollerGetUserGameArchiveResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/usercontroller/getUserGameArchive" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + varFormParams.Add("accountId", parameterToString(varForms.AccountId, "")) + varFormParams.Add("gameId", parameterToString(varForms.GameId, "")) + varFormParams.Add("projectId", parameterToString(varForms.ProjectId, "")) + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// ListLatestGameArchive +/* + * + * @param varForms model.UsercontrollerListLatestGameArchiveForms + */ +func (s *UsercontrollerApiService) ListLatestGameArchive( + varForms *model.UsercontrollerListLatestGameArchiveForms, +) (model.UsercontrollerListLatestGameArchiveResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.UsercontrollerListLatestGameArchiveResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/usercontroller/listLatestGameArchive" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + varFormParams.Add("accountId", parameterToString(varForms.AccountId, "")) + varFormParams.Add("gameId", parameterToString(varForms.GameId, "")) + if varForms != nil && varForms.PageSize != nil { + varFormParams.Add("pageSize", parameterToString(*varForms.PageSize, "")) + } + if varForms != nil && varForms.PageNumber != nil { + varFormParams.Add("pageNumber", parameterToString(*varForms.PageNumber, "")) + } + if varForms != nil && varForms.TagStatus != nil { + varFormParams.Add("tagStatus", parameterToString(*varForms.TagStatus, "")) + } + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// RestoreGameArchive +/* + * + * @param varForms model.UsercontrollerRestoreGameArchiveForms + */ +func (s *UsercontrollerApiService) RestoreGameArchive( + varForms *model.UsercontrollerRestoreGameArchiveForms, +) (model.UsercontrollerRestoreGameArchiveResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.UsercontrollerRestoreGameArchiveResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/usercontroller/restoreGameArchive" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + varFormParams.Add("accountId", parameterToString(varForms.AccountId, "")) + varFormParams.Add("gameId", parameterToString(varForms.GameId, "")) + varFormParams.Add("archiveId", parameterToString(varForms.ArchiveId, "")) + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} + +// UpdateGameArchiveTagStatus +/* + * + * @param varForms model.UsercontrollerUpdateGameArchiveTagStatusForms + */ +func (s *UsercontrollerApiService) UpdateGameArchiveTagStatus( + varForms *model.UsercontrollerUpdateGameArchiveTagStatusForms, +) (model.UsercontrollerUpdateGameArchiveTagStatusResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.UsercontrollerUpdateGameArchiveTagStatusResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/usercontroller/updateGameArchiveTagStatus" + + varHeaderParams := make(map[string]string) + varQueryParams := url.Values{} + varFormParams := url.Values{} + + // to determine the Content-Type header + varHttpContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + varHttpContentType := selectHeaderContentType(varHttpContentTypes) + if varHttpContentType != "" { + varHeaderParams["Content-Type"] = varHttpContentType + } + + // to determine the Accept header + varHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts) + if varHttpHeaderAccept != "" { + varHeaderParams["Accept"] = varHttpHeaderAccept + } + varFormParams.Add("accountId", parameterToString(varForms.AccountId, "")) + varFormParams.Add("gameId", parameterToString(varForms.GameId, "")) + varFormParams.Add("archiveId", parameterToString(varForms.ArchiveId, "")) + varFormParams.Add("tagStatus", parameterToString(varForms.TagStatus, "")) + + r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams) + if err != nil { + return varReturnValue, nil, err + } + + varHttpResponse, err := s.client.callAPI(r) + if err != nil || varHttpResponse == nil { + return varReturnValue, varHttpResponse, err + } + + defer varHttpResponse.Body.Close() + varBody, err := ioutil.ReadAll(varHttpResponse.Body) + if err != nil { + return varReturnValue, varHttpResponse, err + } + + if varHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type")) + if err == nil { + return varReturnValue, varHttpResponse, err + } + } + + if varHttpResponse.StatusCode >= 300 { + newErr := GenericError{ + body: varBody, + error: varHttpResponse.Status, + } + return varReturnValue, varHttpResponse, newErr + } + + return varReturnValue, varHttpResponse, nil +} From 90db8d39de332ef502608820cf5fbc931d98300c Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:20:43 +0800 Subject: [PATCH 252/255] feat: update --- client/api/client.go | 438 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 438 insertions(+) create mode 100644 client/api/client.go diff --git a/client/api/client.go b/client/api/client.go new file mode 100644 index 00000000..b0984e68 --- /dev/null +++ b/client/api/client.go @@ -0,0 +1,438 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package api + +import ( + "bytes" + "crypto/md5" + "crypto/rand" + "encoding/hex" + "encoding/json" + "errors" + "fmt" + "net/http" + "net/url" + "reflect" + "regexp" + "sort" + "strconv" + "strings" + "time" + "unicode/utf8" + +) + +const ( + Trace_Id string = "Traceid" + Result_Status string = "Result-Status" +) + +var ( + jsonCheck = regexp.MustCompile("(?i:[application|text]/json)") + xmlCheck = regexp.MustCompile("(?i:[application|text]/xml)") + + DefaultConfiguration = NewConfiguration() +) + +// APIClient manages communication with the API +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + AdaptApi *AdaptApiService + + ConsoleAdminApi *ConsoleAdminApiService + + DispatchApi *DispatchApiService + + LiveApi *LiveApiService + + MultiplayApi *MultiplayApiService + + TokenApi *TokenApiService + + UsercontrollerApi *UsercontrollerApiService +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(cfg *Configuration) *APIClient { + if cfg.HTTPClient == nil { + cfg.HTTPClient = http.DefaultClient + } + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.AdaptApi = (*AdaptApiService)(&c.common) + c.ConsoleAdminApi = (*ConsoleAdminApiService)(&c.common) + c.DispatchApi = (*DispatchApiService)(&c.common) + c.LiveApi = (*LiveApiService)(&c.common) + c.MultiplayApi = (*MultiplayApiService)(&c.common) + c.TokenApi = (*TokenApiService)(&c.common) + c.UsercontrollerApi = (*UsercontrollerApiService)(&c.common) + + return c +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insenstive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.ToLower(a) == strings.ToLower(needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("Expected %s to be of type %s but received %s.", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +// parameterToString convert interface{} parameters to string, using a delimiter if format is provided. +func parameterToString(obj interface{}, collectionFormat string) string { +// var delimiter string + +// switch collectionFormat { +// case "pipes": +// delimiter = "|" +// case "ssv": +// delimiter = " " +// case "tsv": +// delimiter = "\t" +// case "csv": +// delimiter = "," +// } + + if reflect.TypeOf(obj).Kind() == reflect.Slice { +// return strings.Trim(strings.Replace(fmt.Sprint(obj), " ", delimiter, -1), "[]") + if marshal, err := json.Marshal(obj); err != nil { + return "" + } else { + return string(marshal) + } + } + if reflect.TypeOf(obj).Kind() == reflect.Struct { + if marshal, err := json.Marshal(obj); err != nil { + return "" + } else { + return string(marshal) + } + } + return fmt.Sprintf("%v", obj) +} + +// callAPI do the request. +func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) { + return c.cfg.HTTPClient.Do(request) +} + +// prepareRequest build the request +func (c *APIClient) prepareRequest( + path string, + method string, + headerParams map[string]string, + queryParams url.Values, + formParams url.Values, +) (localVarRequest *http.Request, err error) { + + var body *bytes.Buffer + + // add form parameters + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = query.Encode() + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers.Set(h, v) + } + localVarRequest.Header = headers + } + + // Override request host, if applicable + if c.cfg.Host != "" { + localVarRequest.Host = c.cfg.Host + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", "cgw-client/1.0.0/go") + + // prepare sign headers + prepareSignHeader(queryParams, formParams, localVarRequest, c.cfg) + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if strings.Contains(contentType, "application/json") { + if err = json.Unmarshal(b, v); err != nil { + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } + expires = now.Add(lifetime) + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +func prepareSignHeader(queryParams url.Values, formParams url.Values, localVarRequest *http.Request, cfg *Configuration) { + accessKey := cfg.AccessKey + nonce := randNonce(16) + version := cfg.SignatureVersion + timestamp := time.Now().UTC().Format(time.RFC3339) + method := cfg.SignatureMethod + + values := url.Values{} + values.Add("AccessKey", accessKey) + values.Add("SignatureNonce", nonce) + values.Add("SignatureVersion", version) + values.Add("SignatureMethod", method) + values.Add("Timestamp", timestamp) + if len(queryParams) > 0 { + for s, i := range queryParams { + for _, s2 := range i { + values.Add(s, s2) + } + } + } + if len(formParams) > 0 { + for s, i := range formParams { + for _, s2 := range i { + values.Add(s, s2) + } + } + } + + sign := md5Hex([]byte(getSignRaw(values, localVarRequest.Method, cfg.SecretKey))) + localVarRequest.Header.Add("Signature", sign) + localVarRequest.Header.Add("Accesskey", accessKey) + localVarRequest.Header.Add("Signaturenonce", nonce) + localVarRequest.Header.Add("Signatureversion", version) + localVarRequest.Header.Add("Timestamp", timestamp) + localVarRequest.Header.Add("Signaturemethod", method) +} + +func md5Hex(data []byte) string { + md5Sum := md5.Sum(data) + return hex.EncodeToString(md5Sum[:]) +} + +func getSignRaw(values url.Values, method string, secret string) string { + return secret + "&" + keySignInput(values, method) +} + +func keySignInput(values url.Values, method string) string { + keys := make([]string, 0) + for s, _ := range values { + keys = append(keys, s) + } + sort.Strings(keys) + + stringToSign := method + "&" + encodeURLComponent("/") + + strs := make([]string, 0) + for _, k := range keys { + strs = append(strs, k+"="+encodeURLComponent(values.Get(k))) + } + return stringToSign + "&" + encodeURLComponent(strings.Join(strs, "&")) +} + +func encodeURLComponent(str string) string { + escape := url.QueryEscape(str) + escape = strings.ReplaceAll(escape, "+", "%20") + escape = strings.ReplaceAll(escape, "*", "%2A") + escape = strings.ReplaceAll(escape, "%7E", "~") + return escape +} + +func randNonce(n int) string { + b := make([]byte, n) + rand.Read(b) + return hex.EncodeToString(b) +} + +// GenericError Provides access to the body, error and model on returned errors. +type GenericError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericError) Model() interface{} { + return e.model +} + +type Configuration struct { + Host string `json:"host"` + Scheme string `json:"scheme"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + AccessKey string `json:"accessKey"` + SecretKey string `json:"secretKey"` + SignatureVersion string `json:"signatureVersion"` + SignatureMethod string `json:"signatureMethod"` + HTTPClient *http.Client +} + +func NewConfiguration() *Configuration { + return &Configuration{ + Scheme: "https", + SignatureVersion: "1.0", + SignatureMethod: "MD5", + HTTPClient: http.DefaultClient, + } +} \ No newline at end of file From c66f3829a252a494c6e4f4511e573aad0121e53d Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:20:44 +0800 Subject: [PATCH 253/255] feat: update --- .gitignore | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..19cf1859 --- /dev/null +++ b/.gitignore @@ -0,0 +1,16 @@ +workspace.xml +.DS_Store +.tmp +.settings +*~ +.pyc +*.py[co] +# IDEA IDE +.idea* +build/ +dist/ +out/ +.gitignore +coverage.* +.history/ +vendor/ \ No newline at end of file From 84a9dc99ab16118e3fe054d9f4c54d93890aa919 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:20:45 +0800 Subject: [PATCH 254/255] feat: update --- go.mod | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 go.mod diff --git a/go.mod b/go.mod new file mode 100644 index 00000000..7f281e33 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module github.com/aliyun/alibabacloud-yjopenapi-go-client + +go 1.15 From 2d3fcdfa3adcfea6eb566a85271a8edb67b5dfd6 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 3 Jul 2024 00:20:47 +0800 Subject: [PATCH 255/255] feat: update --- README.md | 122 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 122 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 00000000..956b4922 --- /dev/null +++ b/README.md @@ -0,0 +1,122 @@ +![](https://aliyunsdk-pages.alicdn.com/icons/AlibabaCloud.svg) + +# YuanJing OpenAPI SDK for Go + +## Requirements +- It's necessary for you to make sure your system have installed Go environment which version greater than 1.15.0. + +## Installation +If you use `go mod` to manage your dependence, you can use the following command: +``` +go get github.com/aliyun/alibabacloud-yjopenapi-go-client 1.1.20240703 +``` + +## Usage +``` +import ( + "github.com/aliyun/alibabacloud-yjopenapi-go-client/client/api" + "github.com/aliyun/alibabacloud-yjopenapi-go-client/client/model" +) + +configuration := api.DefaultConfiguration +configuration.Host = "host" +configuration.AccessKey = "Your Access Key" +configuration.SecretKey = "Your Secret Key" + +client := api.NewAPIClient(configuration) + +// {{Api}},{{Method}},{{Param}} is placeholder, take a look at Explain Of Usage Placeholder +result, response, error := client.{{Api}}.{{Method}}(&model.{{Params}}{}) + +// OpenAPI TraceId +traceId := response.Header.Get(client.Trace_Id) +// OpenAPI Status Code +statusCode := response.Header.Get(client.Result_Status) + +// OpenAPI result +_ := result +``` + +## Explain Of Usage Placeholder + +| Api | Method | Params | Result | Description | +| ------------ | ------------- | ------------- | ------------- | ------------- | + | *AdaptApi* | **CreateAndSubmitAll** | *CreateAndSubmitAllForms* | *AdaptCreateAndSubmitAllResult* | createAndSubmitAll | + | *AdaptApi* | **QueryRequestById** | *QueryRequestByIdForms* | *AdaptQueryRequestByIdResult* | queryRequestById | + | *ConsoleAdminApi* | **ActivateDeployment** | *ActivateDeploymentForms* | *ConsoleAdminActivateDeploymentResult* | | + | *ConsoleAdminApi* | **AdaptGameVersion** | *AdaptGameVersionForms* | *ConsoleAdminAdaptGameVersionResult* | | + | *ConsoleAdminApi* | **AddGameToProject** | *AddGameToProjectForms* | *ConsoleAdminAddGameToProjectResult* | | + | *ConsoleAdminApi* | **BatchUpdateDispatchConfig** | *BatchUpdateDispatchConfigForms* | *ConsoleAdminBatchUpdateDispatchConfigResult* | 批量更新游戏各自调度配置 | + | *ConsoleAdminApi* | **CreateGame** | *CreateGameForms* | *ConsoleAdminCreateGameResult* | | + | *ConsoleAdminApi* | **CreateOrder** | *CreateOrderForms* | *ConsoleAdminCreateOrderResult* | 订单下单 | + | *ConsoleAdminApi* | **CreateProject** | *CreateProjectForms* | *ConsoleAdminCreateProjectResult* | | + | *ConsoleAdminApi* | **DeleteGame** | *DeleteGameForms* | *ConsoleAdminDeleteGameResult* | | + | *ConsoleAdminApi* | **DeleteGameVersion** | *DeleteGameVersionForms* | *ConsoleAdminDeleteGameVersionResult* | | + | *ConsoleAdminApi* | **DeleteProject** | *DeleteProjectForms* | *ConsoleAdminDeleteProjectResult* | | + | *ConsoleAdminApi* | **GetBillFlowInfo** | *GetBillFlowInfoForms* | *ConsoleAdminGetBillFlowInfoResult* | | + | *ConsoleAdminApi* | **GetGameInstanceContainerRatio** | *GetGameInstanceContainerRatioForms* | *ConsoleAdminGetGameInstanceContainerRatioResult* | | + | *ConsoleAdminApi* | **GetGameRecommendedInstance** | *GetGameRecommendedInstanceForms* | *ConsoleAdminGetGameRecommendedInstanceResult* | | + | *ConsoleAdminApi* | **GetGameVersion** | *GetGameVersionForms* | *ConsoleAdminGetGameVersionResult* | | + | *ConsoleAdminApi* | **GetGameVersionProgress** | *GetGameVersionProgressForms* | *ConsoleAdminGetGameVersionProgressResult* | | + | *ConsoleAdminApi* | **GetOrder** | *GetOrderForms* | *ConsoleAdminGetOrderResult* | 查询订单 | + | *ConsoleAdminApi* | **ListActivateableInstances** | *ListActivateableInstancesForms* | *ConsoleAdminListActivateableInstancesResult* | | + | *ConsoleAdminApi* | **ListActivatedInstances** | *ListActivatedInstancesForms* | *ConsoleAdminListActivatedInstancesResult* | | + | *ConsoleAdminApi* | **ListControllersOfGame** | *ListControllersOfGameForms* | *ConsoleAdminListControllersOfGameResult* | | + | *ConsoleAdminApi* | **ListDeployableInstances** | *ListDeployableInstancesForms* | *ConsoleAdminListDeployableInstancesResult* | | + | *ConsoleAdminApi* | **ListGameCcu** | *ListGameCcuForms* | *ConsoleAdminListGameCcuResult* | 分游戏实时并发 | + | *ConsoleAdminApi* | **ListGameDeployDetailsOfProject** | *ListGameDeployDetailsOfProjectForms* | *ConsoleAdminListGameDeployDetailsOfProjectResult* | 获取项目下游戏部署版本信息。 | + | *ConsoleAdminApi* | **ListGameVersions** | *ListGameVersionsForms* | *ConsoleAdminListGameVersionsResult* | | + | *ConsoleAdminApi* | **ListGames** | *ListGamesForms* | *ConsoleAdminListGamesResult* | | + | *ConsoleAdminApi* | **ListInstancesOfProject** | *ListInstancesOfProjectForms* | *ConsoleAdminListInstancesOfProjectResult* | 分页获取项目中的实例 | + | *ConsoleAdminApi* | **ListMonthBill** | *ListMonthBillForms* | *ConsoleAdminListMonthBillResult* | 月度账单列表 | + | *ConsoleAdminApi* | **ListProjects** | *ListProjectsForms* | *ConsoleAdminListProjectsResult* | | + | *ConsoleAdminApi* | **ListVersionDeployInstances** | *ListVersionDeployInstancesForms* | *ConsoleAdminListVersionDeployInstancesResult* | 获取项目下游戏版本的部署实例信息。 | + | *ConsoleAdminApi* | **QueryAdaptResultByVersionId** | *QueryAdaptResultByVersionIdForms* | *ConsoleAdminQueryAdaptResultByVersionIdResult* | 查询适配结果 | + | *ConsoleAdminApi* | **RecommendSpecification** | *RecommendSpecificationForms* | *ConsoleAdminRecommendSpecificationResult* | | + | *ConsoleAdminApi* | **RemoveGameFromProject** | *RemoveGameFromProjectForms* | *ConsoleAdminRemoveGameFromProjectResult* | | + | *ConsoleAdminApi* | **RtOverView** | *RtOverViewForms* | *ConsoleAdminRtOverViewResult* | 实时并发数 | + | *ConsoleAdminApi* | **RtTrend** | *RtTrendForms* | *ConsoleAdminRtTrendResult* | 实时并发趋势图 | + | *ConsoleAdminApi* | **SubmitDeployment** | *SubmitDeploymentForms* | *ConsoleAdminSubmitDeploymentResult* | | + | *ConsoleAdminApi* | **UploadGameVersionByDownload** | *UploadGameVersionByDownloadForms* | *ConsoleAdminUploadGameVersionByDownloadResult* | | + | *DispatchApi* | **BatchStopGame** | *BatchStopGameForms* | *BatchStopGameResult* | | + | *DispatchApi* | **CancelGameHang** | *CancelGameHangForms* | *CancelGameHangResult* | 取消游戏挂机 | + | *DispatchApi* | **ClientNotify** | *ClientNotifyForms* | *ClientNotifyResult* | clientNotify | + | *DispatchApi* | **GameNotify** | *GameNotifyForms* | *GameNotifyResult* | 游戏通知接口 | + | *DispatchApi* | **GetGameConcurrency** | *GetGameConcurrencyForms* | *GetGameConcurrencyResult* | 调用GetGameConcurrency获取游戏当前并发数 | + | *DispatchApi* | **GetStock** | *GetStockForms* | *GetStockResult* | 调用GetStock获取游戏当前库存 | + | *DispatchApi* | **GetStopGameToken** | *GetStopGameTokenForms* | *GetStopGameTokenResult* | 全量踢下线获取token | + | *DispatchApi* | **ListGameServerIp** | *ListGameServerIpForms* | *ListGameServerIpResult* | | + | *DispatchApi* | **QueryGameHang** | *QueryGameHangForms* | *QueryGameHangResult* | 查询游戏挂机状态 | + | *DispatchApi* | **QuerySessionStatus** | *QuerySessionStatusForms* | *QuerySessionStatusResult* | 查询会话当前状态 | + | *DispatchApi* | **ReplaceSlot** | *ReplaceSlotForms* | *ReplaceSlotResult* | replaceSlot | + | *DispatchApi* | **SetGameAlive** | *SetGameAliveForms* | *SetGameAliveResult* | 设置游戏可运行时长 | + | *DispatchApi* | **SetGameHang** | *SetGameHangForms* | *SetGameHangResult* | 设置游戏挂机 | + | *DispatchApi* | **StopGame** | *StopGameForms* | *StopGameResult* | 服务端发起,停止某个用户的某个游戏的某个会话 | + | *DispatchApi* | **StopPreopenContainer** | *StopPreopenContainerForms* | *StopPreopenContainerResult* | 停止预开容器 | + | *DispatchApi* | **TryToGetSlot** | *TryToGetSlotForms* | *TryToGetSlotResult* | 为用户调度分配游戏容器,容器一旦分配成功会被锁住,一段时间内不再分配给其他用户,过期释放。 | + | *DispatchApi* | **TryToGetSlots** | *TryToGetSlotsForms* | *TryToGetSlotsResult* | tryToGetSlots | + | *DispatchApi* | **UpdatePreopenStrategy** | *UpdatePreopenStrategyForms* | *UpdatePreopenStrategyResult* | 更新预开预起策略 | + | *LiveApi* | **QueryStatus** | *QueryStatusForms* | *LiveQueryStatusResult* | | + | *LiveApi* | **StartGameLive** | *StartGameLiveForms* | *LiveStartGameLiveResult* | | + | *LiveApi* | **StopGameLive** | *StopGameLiveForms* | *LiveStopGameLiveResult* | | + | *MultiplayApi* | **Close** | *CloseForms* | *MultiplayCloseResult* | | + | *MultiplayApi* | **Init** | *InitForms* | *MultiplayInitResult* | | + | *MultiplayApi* | **Join** | *JoinForms* | *MultiplayJoinResult* | | + | *MultiplayApi* | **Leave** | *LeaveForms* | *MultiplayLeaveResult* | | + | *MultiplayApi* | **Modify** | *ModifyForms* | *MultiplayModifyResult* | | + | *MultiplayApi* | **Query** | *QueryForms* | *MultiplayQueryResult* | | + | *TokenApi* | **GetPair** | | *GetPairResult* | 获取临时安全令牌(二元组) | + | *TokenApi* | **GetTriple** | | *GetTripleResult* | 获取临时安全令牌 | + | *UsercontrollerApi* | **DeleteGameArchive** | *DeleteGameArchiveForms* | *UsercontrollerDeleteGameArchiveResult* | | + | *UsercontrollerApi* | **GetGameTrialSurplusDuration** | *GetGameTrialSurplusDurationForms* | *UsercontrollerGetGameTrialSurplusDurationResult* | | + | *UsercontrollerApi* | **GetUserGameArchive** | *GetUserGameArchiveForms* | *UsercontrollerGetUserGameArchiveResult* | | + | *UsercontrollerApi* | **ListLatestGameArchive** | *ListLatestGameArchiveForms* | *UsercontrollerListLatestGameArchiveResult* | | + | *UsercontrollerApi* | **RestoreGameArchive** | *RestoreGameArchiveForms* | *UsercontrollerRestoreGameArchiveResult* | | + | *UsercontrollerApi* | **UpdateGameArchiveTagStatus** | *UpdateGameArchiveTagStatusForms* | *UsercontrollerUpdateGameArchiveTagStatusResult* | | + +## License +[Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0) + +Copyright (c) 2009-present, Alibaba Cloud All rights reserved. + +