From dc02703e619a914a950b39345739e470775ae989 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:19:57 +0800 Subject: [PATCH 001/316] 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 d1acb5c2b1e37580d98aab75979fcf9d64fdb42c Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:25:05 +0800 Subject: [PATCH 002/316] feat: update From 35ac8c373a78bb0ae0f76f8bd37b9d6c4de3bd91 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:25:06 +0800 Subject: [PATCH 003/316] 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 b31282df3640851757150d57739c2646eee909c8 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:25:08 +0800 Subject: [PATCH 004/316] 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 32a686435ed2fd9c6bad78077f280adbf7fc76af Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:25:09 +0800 Subject: [PATCH 005/316] 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 dc82945c29b475c10b41d98483581836c7721ef2 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:25:10 +0800 Subject: [PATCH 006/316] 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 5efcdce38f34a4891e507223eb3a46c594a41905 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:25:12 +0800 Subject: [PATCH 007/316] feat: update --- client/model/aibatchupdatekbversionforms.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/aibatchupdatekbversionforms.go diff --git a/client/model/aibatchupdatekbversionforms.go b/client/model/aibatchupdatekbversionforms.go new file mode 100644 index 00000000..13b80a58 --- /dev/null +++ b/client/model/aibatchupdatekbversionforms.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type AiBatchUpdateKbVersionForms struct { + RoleIds []int64 `json:"roleIds"` + KbId int64 `json:"kbId"` + KbVersionId int64 `json:"kbVersionId"` + Operator string `json:"operator"` +} From ada04edc5f84e4056bb0d4ef043ae7f17d0c7df5 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:25:13 +0800 Subject: [PATCH 008/316] feat: update --- client/model/aibatchupdatekbversionresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/aibatchupdatekbversionresult.go diff --git a/client/model/aibatchupdatekbversionresult.go b/client/model/aibatchupdatekbversionresult.go new file mode 100644 index 00000000..062e4e2f --- /dev/null +++ b/client/model/aibatchupdatekbversionresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type AiBatchUpdateKbVersionResult struct { + Success bool `json:"success,omitempty"` + Model map[string]string `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From cbba8419075bbc32e2141d79a26d9254cbf8549f Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:25:15 +0800 Subject: [PATCH 009/316] feat: update --- client/model/aicancelqueueforms.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 client/model/aicancelqueueforms.go diff --git a/client/model/aicancelqueueforms.go b/client/model/aicancelqueueforms.go new file mode 100644 index 00000000..c34536dc --- /dev/null +++ b/client/model/aicancelqueueforms.go @@ -0,0 +1,11 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type AiCancelQueueForms struct { + TaskId string `json:"taskId"` +} From 297797a53b3bfe1e8ec1bae70f68a2497f58262d Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:25:16 +0800 Subject: [PATCH 010/316] feat: update --- client/model/aicancelqueueresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/aicancelqueueresult.go diff --git a/client/model/aicancelqueueresult.go b/client/model/aicancelqueueresult.go new file mode 100644 index 00000000..2dbf373b --- /dev/null +++ b/client/model/aicancelqueueresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type AiCancelQueueResult struct { + Success bool `json:"success,omitempty"` + Model AiCancelQueueResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From ca73ca5628d250da88de31182da74563b6dc39aa Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:25:17 +0800 Subject: [PATCH 011/316] feat: update --- client/model/aicancelqueueresultmodel.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 client/model/aicancelqueueresultmodel.go diff --git a/client/model/aicancelqueueresultmodel.go b/client/model/aicancelqueueresultmodel.go new file mode 100644 index 00000000..93f4ac8e --- /dev/null +++ b/client/model/aicancelqueueresultmodel.go @@ -0,0 +1,13 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type AiCancelQueueResultModel struct { + Msg string `json:"msg,omitempty"` + RequestId string `json:"requestId,omitempty"` + Success bool `json:"success,omitempty"` +} From 8a36085b24306d9ca28da87c8b4441a51b650875 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:25:19 +0800 Subject: [PATCH 012/316] feat: update --- client/model/aicreatenpcroleforms.go | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 client/model/aicreatenpcroleforms.go diff --git a/client/model/aicreatenpcroleforms.go b/client/model/aicreatenpcroleforms.go new file mode 100644 index 00000000..cad29213 --- /dev/null +++ b/client/model/aicreatenpcroleforms.go @@ -0,0 +1,23 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type AiCreateNpcRoleForms struct { + Name string `json:"name"` + Description string `json:"description"` + FigureId int64 `json:"figureId"` + VoiceId int64 `json:"voiceId"` + Characters string `json:"characters"` + Greetings string `json:"greetings"` + Guidance []string `json:"guidance"` + KnowledgeBases *[]AiCreateNpcRoleFormsKnowledgeBases `json:"knowledgeBases,omitempty"` + PluginIds *[]int64 `json:"pluginIds,omitempty"` + ShortMemoryRound int32 `json:"shortMemoryRound"` + TenantId int64 `json:"tenantId"` + Operator string `json:"operator"` + LlmModelId int64 `json:"llmModelId"` +} From d2fc6abc88a7f071b1f6e082271bdc7fba4dd0fe Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:25:20 +0800 Subject: [PATCH 013/316] feat: update --- client/model/aicreatenpcroleformsknowledgebases.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 client/model/aicreatenpcroleformsknowledgebases.go diff --git a/client/model/aicreatenpcroleformsknowledgebases.go b/client/model/aicreatenpcroleformsknowledgebases.go new file mode 100644 index 00000000..49657362 --- /dev/null +++ b/client/model/aicreatenpcroleformsknowledgebases.go @@ -0,0 +1,12 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type AiCreateNpcRoleFormsKnowledgeBases struct { + KnowledgeBaseVersionId int64 `json:"knowledgeBaseVersionId,omitempty"` + KnowledgeBaseId int64 `json:"knowledgeBaseId"` +} From bf941ec8b75df2a3d42c6292c8697c8d0c97fa63 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:25:21 +0800 Subject: [PATCH 014/316] feat: update --- client/model/aicreatenpcroleresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/aicreatenpcroleresult.go diff --git a/client/model/aicreatenpcroleresult.go b/client/model/aicreatenpcroleresult.go new file mode 100644 index 00000000..961b18a2 --- /dev/null +++ b/client/model/aicreatenpcroleresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type AiCreateNpcRoleResult struct { + Success bool `json:"success,omitempty"` + Model map[string]string `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From 4ae6c3c8a482c74d2b9639baa1ee1f7b66139cea Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:25:23 +0800 Subject: [PATCH 015/316] feat: update --- client/model/aideletemodelsforms.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 client/model/aideletemodelsforms.go diff --git a/client/model/aideletemodelsforms.go b/client/model/aideletemodelsforms.go new file mode 100644 index 00000000..ea38095c --- /dev/null +++ b/client/model/aideletemodelsforms.go @@ -0,0 +1,11 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type AiDeleteModelsForms struct { + ResourceId string `json:"resourceId"` +} From 6d2d83a6a47d02d6a05326c83da08a8a93f84828 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:25:24 +0800 Subject: [PATCH 016/316] feat: update --- client/model/aideletemodelsresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/aideletemodelsresult.go diff --git a/client/model/aideletemodelsresult.go b/client/model/aideletemodelsresult.go new file mode 100644 index 00000000..1b2ec66f --- /dev/null +++ b/client/model/aideletemodelsresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type AiDeleteModelsResult struct { + Success bool `json:"success,omitempty"` + Model AiDeleteModelsResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From 0ae65fc295dd8d59f542375ab41a1a94c290080e Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:25:26 +0800 Subject: [PATCH 017/316] feat: update --- client/model/aideletemodelsresultmodel.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 client/model/aideletemodelsresultmodel.go diff --git a/client/model/aideletemodelsresultmodel.go b/client/model/aideletemodelsresultmodel.go new file mode 100644 index 00000000..65b090d2 --- /dev/null +++ b/client/model/aideletemodelsresultmodel.go @@ -0,0 +1,12 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type AiDeleteModelsResultModel struct { + RequestId string `json:"requestId,omitempty"` + Success bool `json:"success,omitempty"` +} From 39d4de91d718b25fef9b96d3d724a230414819c0 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:25:27 +0800 Subject: [PATCH 018/316] feat: update --- client/model/aigetqueueforms.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 client/model/aigetqueueforms.go diff --git a/client/model/aigetqueueforms.go b/client/model/aigetqueueforms.go new file mode 100644 index 00000000..9dd56340 --- /dev/null +++ b/client/model/aigetqueueforms.go @@ -0,0 +1,11 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type AiGetQueueForms struct { + TaskId string `json:"taskId"` +} From bff925108e4cd517b438c7a122350c742fbe602b Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:25:28 +0800 Subject: [PATCH 019/316] feat: update --- client/model/aigetqueueresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/aigetqueueresult.go diff --git a/client/model/aigetqueueresult.go b/client/model/aigetqueueresult.go new file mode 100644 index 00000000..5140f44c --- /dev/null +++ b/client/model/aigetqueueresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type AiGetQueueResult struct { + Success bool `json:"success,omitempty"` + Model AiGetQueueResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From 4b8ab693e23af666553a6ca56b6e77b8e250c35f Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:25:30 +0800 Subject: [PATCH 020/316] feat: update --- client/model/aigetqueueresultmodel.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 client/model/aigetqueueresultmodel.go diff --git a/client/model/aigetqueueresultmodel.go b/client/model/aigetqueueresultmodel.go new file mode 100644 index 00000000..f7e16d16 --- /dev/null +++ b/client/model/aigetqueueresultmodel.go @@ -0,0 +1,13 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type AiGetQueueResultModel struct { + QueueNum string `json:"queueNum,omitempty"` + RequestId string `json:"requestId,omitempty"` + Status string `json:"status,omitempty"` +} From 684e46da7f319d58b553da1f109e9b4d9d3d34f9 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:25:32 +0800 Subject: [PATCH 021/316] feat: update --- client/model/ailistmodelsforms.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 client/model/ailistmodelsforms.go diff --git a/client/model/ailistmodelsforms.go b/client/model/ailistmodelsforms.go new file mode 100644 index 00000000..84508092 --- /dev/null +++ b/client/model/ailistmodelsforms.go @@ -0,0 +1,16 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type AiListModelsForms struct { + ModelType *string `json:"modelType,omitempty"` + ModelFileType *string `json:"modelFileType,omitempty"` + ModelSeries *string `json:"modelSeries,omitempty"` + ModelFileName *string `json:"modelFileName,omitempty"` + PageNumber int32 `json:"pageNumber"` + PageSize int32 `json:"pageSize"` +} From ae805f5526f99f113278a560c535ab8cfe8eea53 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:25:33 +0800 Subject: [PATCH 022/316] feat: update --- client/model/ailistmodelsresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/ailistmodelsresult.go diff --git a/client/model/ailistmodelsresult.go b/client/model/ailistmodelsresult.go new file mode 100644 index 00000000..4ede7206 --- /dev/null +++ b/client/model/ailistmodelsresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type AiListModelsResult struct { + Success bool `json:"success,omitempty"` + Model AiListModelsResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From a8e0a9ff7e85b3988890b1cb599662ebac0aa28a Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:25:34 +0800 Subject: [PATCH 023/316] feat: update --- client/model/ailistmodelsresultmodel.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 client/model/ailistmodelsresultmodel.go diff --git a/client/model/ailistmodelsresultmodel.go b/client/model/ailistmodelsresultmodel.go new file mode 100644 index 00000000..b8990738 --- /dev/null +++ b/client/model/ailistmodelsresultmodel.go @@ -0,0 +1,12 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type AiListModelsResultModel struct { + ModelList AiListModelsResultModelModelList `json:"modelList,omitempty"` + RequestId string `json:"requestId,omitempty"` +} From 885bbcfe96dedb8858ec46061ef8c9f1e97c90b4 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:25:36 +0800 Subject: [PATCH 024/316] feat: update --- client/model/ailistmodelsresultmodelmodellist.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/ailistmodelsresultmodelmodellist.go diff --git a/client/model/ailistmodelsresultmodelmodellist.go b/client/model/ailistmodelsresultmodelmodellist.go new file mode 100644 index 00000000..38f8f5c8 --- /dev/null +++ b/client/model/ailistmodelsresultmodelmodellist.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type AiListModelsResultModelModelList struct { + PageNumber string `json:"pageNumber,omitempty"` + PageSize string `json:"pageSize,omitempty"` + TotalCount int64 `json:"totalCount,omitempty"` + Items []AiListModelsResultModelModelListItems `json:"items,omitempty"` +} From c29642254a62a423344844f120e0e98eeb277752 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:25:37 +0800 Subject: [PATCH 025/316] feat: update --- .../ailistmodelsresultmodelmodellistitems.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 client/model/ailistmodelsresultmodelmodellistitems.go diff --git a/client/model/ailistmodelsresultmodelmodellistitems.go b/client/model/ailistmodelsresultmodelmodellistitems.go new file mode 100644 index 00000000..b2e70bd6 --- /dev/null +++ b/client/model/ailistmodelsresultmodelmodellistitems.go @@ -0,0 +1,16 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type AiListModelsResultModelModelListItems struct { + ModelSeries string `json:"modelSeries,omitempty"` + ModelType string `json:"modelType,omitempty"` + ModelFileType string `json:"modelFileType,omitempty"` + ModelFileName string `json:"modelFileName,omitempty"` + Url string `json:"url,omitempty"` + Desc string `json:"desc,omitempty"` +} From 2fe61287c0e1bde40c3503b97cdf0ccdae3dfce7 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:25:39 +0800 Subject: [PATCH 026/316] feat: update --- client/model/aiupdatemodelsforms.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 client/model/aiupdatemodelsforms.go diff --git a/client/model/aiupdatemodelsforms.go b/client/model/aiupdatemodelsforms.go new file mode 100644 index 00000000..479852fb --- /dev/null +++ b/client/model/aiupdatemodelsforms.go @@ -0,0 +1,12 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type AiUpdateModelsForms struct { + ResourceId string `json:"resourceId"` + Desc string `json:"desc"` +} From 52a63999d46887701b96f19bf093869c60a8f054 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:25:40 +0800 Subject: [PATCH 027/316] feat: update --- client/model/aiupdatemodelsresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/aiupdatemodelsresult.go diff --git a/client/model/aiupdatemodelsresult.go b/client/model/aiupdatemodelsresult.go new file mode 100644 index 00000000..c8b4373b --- /dev/null +++ b/client/model/aiupdatemodelsresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type AiUpdateModelsResult struct { + Success bool `json:"success,omitempty"` + Model AiUpdateModelsResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From 485dbc7d67821f3bc20f34114bfc0e0814ea36d9 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:25:42 +0800 Subject: [PATCH 028/316] feat: update --- client/model/aiupdatemodelsresultmodel.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 client/model/aiupdatemodelsresultmodel.go diff --git a/client/model/aiupdatemodelsresultmodel.go b/client/model/aiupdatemodelsresultmodel.go new file mode 100644 index 00000000..6946f8b2 --- /dev/null +++ b/client/model/aiupdatemodelsresultmodel.go @@ -0,0 +1,12 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type AiUpdateModelsResultModel struct { + RequestId string `json:"requestId,omitempty"` + Success bool `json:"success,omitempty"` +} From 89e589888e297949e2677acf9b8963612dfdf3e6 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:25:43 +0800 Subject: [PATCH 029/316] feat: update --- client/model/aiupdatenpcroleforms.go | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 client/model/aiupdatenpcroleforms.go diff --git a/client/model/aiupdatenpcroleforms.go b/client/model/aiupdatenpcroleforms.go new file mode 100644 index 00000000..cf9cf6c0 --- /dev/null +++ b/client/model/aiupdatenpcroleforms.go @@ -0,0 +1,23 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type AiUpdateNpcRoleForms struct { + Id int64 `json:"id"` + Name string `json:"name"` + Description string `json:"description"` + FigureId int64 `json:"figureId"` + VoiceId int64 `json:"voiceId"` + Characters string `json:"characters"` + Greetings string `json:"greetings"` + Guidance []string `json:"guidance"` + KnowledgeBases *[]AiUpdateNpcRoleFormsKnowledgeBases `json:"knowledgeBases,omitempty"` + PluginIds *[]int64 `json:"pluginIds,omitempty"` + ShortMemoryRound int32 `json:"shortMemoryRound"` + Operator string `json:"operator"` + LlmModelId int64 `json:"llmModelId"` +} From db751407060df4348775fd015476cea5afca05b0 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:25:44 +0800 Subject: [PATCH 030/316] feat: update --- client/model/aiupdatenpcroleformsknowledgebases.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 client/model/aiupdatenpcroleformsknowledgebases.go diff --git a/client/model/aiupdatenpcroleformsknowledgebases.go b/client/model/aiupdatenpcroleformsknowledgebases.go new file mode 100644 index 00000000..0ef3a185 --- /dev/null +++ b/client/model/aiupdatenpcroleformsknowledgebases.go @@ -0,0 +1,12 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type AiUpdateNpcRoleFormsKnowledgeBases struct { + KnowledgeBaseVersionId int64 `json:"knowledgeBaseVersionId,omitempty"` + KnowledgeBaseId int64 `json:"knowledgeBaseId"` +} From 09e53e6d782390bbb2c2a36456d99540b7988e75 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:25:46 +0800 Subject: [PATCH 031/316] feat: update --- client/model/aiupdatenpcroleresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/aiupdatenpcroleresult.go diff --git a/client/model/aiupdatenpcroleresult.go b/client/model/aiupdatenpcroleresult.go new file mode 100644 index 00000000..58b625af --- /dev/null +++ b/client/model/aiupdatenpcroleresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type AiUpdateNpcRoleResult struct { + Success bool `json:"success,omitempty"` + Model map[string]string `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From 7759725c887b404997c58fa8e1d1368cfe37c5f0 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:25:47 +0800 Subject: [PATCH 032/316] feat: update --- client/model/aiuploadmodelsforms.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 client/model/aiuploadmodelsforms.go diff --git a/client/model/aiuploadmodelsforms.go b/client/model/aiuploadmodelsforms.go new file mode 100644 index 00000000..460183ee --- /dev/null +++ b/client/model/aiuploadmodelsforms.go @@ -0,0 +1,16 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type AiUploadModelsForms struct { + ModelType string `json:"modelType"` + ModelName string `json:"modelName"` + ModelFilePath string `json:"modelFilePath"` + ModelFiles []AiUploadModelsFormsModelFiles `json:"modelFiles"` + Desc *string `json:"desc,omitempty"` + ModelFileType string `json:"modelFileType"` +} From 86f2dec2f8e5b58e29e10c86548992ac8153394e Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:25:49 +0800 Subject: [PATCH 033/316] feat: update --- client/model/aiuploadmodelsformsmodelfiles.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 client/model/aiuploadmodelsformsmodelfiles.go diff --git a/client/model/aiuploadmodelsformsmodelfiles.go b/client/model/aiuploadmodelsformsmodelfiles.go new file mode 100644 index 00000000..5958d54a --- /dev/null +++ b/client/model/aiuploadmodelsformsmodelfiles.go @@ -0,0 +1,12 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type AiUploadModelsFormsModelFiles struct { + FileName string `json:"fileName,omitempty"` + Url string `json:"url,omitempty"` +} From 54b072036c065cc66754a0a4548f54773b81d8f7 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:25:50 +0800 Subject: [PATCH 034/316] feat: update --- client/model/aiuploadmodelsresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/aiuploadmodelsresult.go diff --git a/client/model/aiuploadmodelsresult.go b/client/model/aiuploadmodelsresult.go new file mode 100644 index 00000000..adf8239b --- /dev/null +++ b/client/model/aiuploadmodelsresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type AiUploadModelsResult struct { + Success bool `json:"success,omitempty"` + Model map[string]string `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From 2d20543df7cd6aeea319345b3c68c6598533df5a Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:25:52 +0800 Subject: [PATCH 035/316] 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 f6097fd8e99f5ad96815a622eeb88bb45d4efdd7 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:25:53 +0800 Subject: [PATCH 036/316] 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 e7ea06a32cd89aacb696753b2d55f7e88c6b7ce4 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:25:55 +0800 Subject: [PATCH 037/316] 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 acd1d06db835ecc2c837f361d21c51cffd408436 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:25:56 +0800 Subject: [PATCH 038/316] 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 f9e9b4980865e4197ff4f7d39558a07d27117331 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:25:58 +0800 Subject: [PATCH 039/316] 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 48586a19aee28b631b786ec02d0451e241373989 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:25:59 +0800 Subject: [PATCH 040/316] 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 29edea7e3180566f9351031daf8fcb140872254a Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:26:01 +0800 Subject: [PATCH 041/316] 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 b4bc94c346c199f018c1fad55a005b6d4780312f Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:26:02 +0800 Subject: [PATCH 042/316] 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 401cda8ccab2f670f9e7ea55e3a88cb9d8cea71e Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:26:03 +0800 Subject: [PATCH 043/316] 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 d7f157a42ca98969215ca8f85dbe2e8c271b3cd7 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:26:05 +0800 Subject: [PATCH 044/316] 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 338e099aafe6480ea2d262a5038d9ab4f12c4105 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:26:06 +0800 Subject: [PATCH 045/316] 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 c2ad230e43ff278bbd7f41e92889858b9db348a6 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:26:08 +0800 Subject: [PATCH 046/316] 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 a12c24a25b873c06f4a1b8d3e928d8e7927d2010 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:26:09 +0800 Subject: [PATCH 047/316] 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 4790683b663c60975aa29aad9e68dfec193a8434 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:26:11 +0800 Subject: [PATCH 048/316] 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 01d3f8ad265eb53b4ba2ddd31cd16a8be0e71f97 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:26:13 +0800 Subject: [PATCH 049/316] 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 b3f694697001b4ae41191cf6efd022802092e1b3 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:26:14 +0800 Subject: [PATCH 050/316] 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 3f5368d723c29e15b8b3be1c060b98aa67efb84a Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:26:16 +0800 Subject: [PATCH 051/316] 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 d1d18845d4d4c7e7692028fee8fe72e43cf33cf3 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:26:17 +0800 Subject: [PATCH 052/316] 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 40ac8624aebf9fe0125c9a79f3eb3750c03f187d Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:26:18 +0800 Subject: [PATCH 053/316] 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 1615fad8865f8d9b01586963b832231b5cb9d6c8 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:26:20 +0800 Subject: [PATCH 054/316] 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 615075692bc16a319e7457afd7ec97412a79041e Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:26:21 +0800 Subject: [PATCH 055/316] 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 3390a74bfe8db170e248b3efb70112d540bc860b Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:26:23 +0800 Subject: [PATCH 056/316] 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 2bb0dd4f8f80774ebf25842d3b50eccfd557ef8c Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:26:24 +0800 Subject: [PATCH 057/316] 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 1b93e93174bbedda918e5364bc138b946fc2d62e Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:26:25 +0800 Subject: [PATCH 058/316] 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 14e25b32eb7a45736eeabaeb0c56782a86ca8f5d Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:26:27 +0800 Subject: [PATCH 059/316] 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 7d5a07dd71666b868ba93da4b9a6e6cbabfc5505 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:26:28 +0800 Subject: [PATCH 060/316] 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 6379493d60c18c56ed059eae0a321f58046e06ce Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:26:30 +0800 Subject: [PATCH 061/316] 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 aaacaed442ebef3a17291a0f3e7c9608b1715450 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:26:31 +0800 Subject: [PATCH 062/316] 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 add05ae33a35bb5f4421f4f25013b1a7b202df26 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:26:32 +0800 Subject: [PATCH 063/316] 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 6d476d1bbb82e0a8ae024a63187d79391081cbda Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:26:34 +0800 Subject: [PATCH 064/316] 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 f4c07bb24d6763f7cd9335123979ce382d12de81 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:26:36 +0800 Subject: [PATCH 065/316] 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 105577b82be9c5029d668fe59d0aad49712b2539 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:26:37 +0800 Subject: [PATCH 066/316] 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 39dd489cef2a3ff892256ba6c3214e57c2bce7ff Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:26:38 +0800 Subject: [PATCH 067/316] 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 c2526568b05d646befc81942ac869392c3018468 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:26:40 +0800 Subject: [PATCH 068/316] 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 4a67a1bcb6f0c34525d75dc66e090c5cf18d7c1c Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:26:41 +0800 Subject: [PATCH 069/316] 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 34f4afd94e101fc24eb6cec24f69e192417352fe Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:26:42 +0800 Subject: [PATCH 070/316] 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 56a089cdad1b08c376a4d2d95e254aee856976c8 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:26:44 +0800 Subject: [PATCH 071/316] 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 9e9c8ce25ad82a772aae3f444ac99550ded82360 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:26:45 +0800 Subject: [PATCH 072/316] 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 842647a749a5fc7c2652073325ed82c29f1fa8e0 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:26:47 +0800 Subject: [PATCH 073/316] 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 0761b9951974f4e23e42c6c39651ecf8a803faa7 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:26:48 +0800 Subject: [PATCH 074/316] 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 af8b46305b89033f60d2aeaf24f29009592ce3bd Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:26:50 +0800 Subject: [PATCH 075/316] 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 ba41da02d3d03128187e840e54894ad7defcfbbb Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:26:51 +0800 Subject: [PATCH 076/316] 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 fd4552854842553093af25f7ada7249ae51ba8e9 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:26:53 +0800 Subject: [PATCH 077/316] 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 a71ff4d0f7a9956599b2421d0985eac6d7a3b743 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:26:54 +0800 Subject: [PATCH 078/316] 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 584b621973deedad20ae1c17be7c416e2cdcb240 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:26:56 +0800 Subject: [PATCH 079/316] 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 c5e131af2f780c04cc85cb874dfa874d51926ce3 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:26:57 +0800 Subject: [PATCH 080/316] 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 c9b2278a85bfc95a103bcf0b1ebed1fe2f865a21 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:26:58 +0800 Subject: [PATCH 081/316] 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 bfedb87d4d385547873142b9154522ec7a1130a5 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:27:00 +0800 Subject: [PATCH 082/316] 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 d06ac5fada3033825965115dd639886da6b78879 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:27:01 +0800 Subject: [PATCH 083/316] 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 d019ff00a67188c0e8207b1302f3f94cad099aa0 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:27:03 +0800 Subject: [PATCH 084/316] 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 28536009de5aaa124bbaca6c3b83a9edb48d20af Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:27:04 +0800 Subject: [PATCH 085/316] 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 fc99c2d638ff2e3308a4a145ca49af40adce4169 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:27:06 +0800 Subject: [PATCH 086/316] 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 834c09b4a24e71ffd58e1aa05ef15ab66530132a Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:27:08 +0800 Subject: [PATCH 087/316] 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 5c35cdd07a5e702305215bf63a06509e8a20a75b Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:27:11 +0800 Subject: [PATCH 088/316] 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 905437b42fe70ae38a21e65a888fc7271eddefc9 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:27:13 +0800 Subject: [PATCH 089/316] 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 f954e7d9080b3da29d40037c16e6b639f2857a39 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:27:14 +0800 Subject: [PATCH 090/316] 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 9441c71a6752691fde4de40b094f09846b6e3afb Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:27:15 +0800 Subject: [PATCH 091/316] 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 6b79389f952f051b5c76bee6d261234cfc967c29 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:27:17 +0800 Subject: [PATCH 092/316] 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 49fb0123a8270a0c655d8c39f613963f88484a13 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:27:18 +0800 Subject: [PATCH 093/316] 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 e5560718d923ed10acf40b2fa0a5c86bb61e58dc Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:27:20 +0800 Subject: [PATCH 094/316] 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 7ba7b6090d5506b0606bf9e1ebee4dd969439e80 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:27:21 +0800 Subject: [PATCH 095/316] 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 226f0add73b38cba51b44a0f4a69c1026f7a80da Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:27:23 +0800 Subject: [PATCH 096/316] 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 e3d7727b5e1d8c93213041ebd16afd398adc1475 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:27:24 +0800 Subject: [PATCH 097/316] 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 d2707fde38492d4b813584867bebb83cb3b40995 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:27:25 +0800 Subject: [PATCH 098/316] 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 979b39e62dcb6a41d1fa2e015e2297bb4c3d03bc Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:27:27 +0800 Subject: [PATCH 099/316] 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 afa938199cb2be4e5e6146047e00fb49498bf8b8 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:27:28 +0800 Subject: [PATCH 100/316] 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 f49bfe0236c39feaa1c1c8a5d5ee4fa052ea66f4 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:27:30 +0800 Subject: [PATCH 101/316] 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 cd1a03e5d5b1f3c7ed6cbda63aa4a1c84efea08d Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:27:31 +0800 Subject: [PATCH 102/316] 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 565e4e64d81be2524f3f52c34adfe4133b4dfc5f Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:27:32 +0800 Subject: [PATCH 103/316] 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 02dad9aca0fd8a12ffccbbcfee6b894626cfec26 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:27:34 +0800 Subject: [PATCH 104/316] 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 8f805b7334a351964fca76cf81be277eab8f8952 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:27:35 +0800 Subject: [PATCH 105/316] 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 a5cfbdca8a4a64b5e18a5e9798a356753309ba52 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:27:37 +0800 Subject: [PATCH 106/316] 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 3dd3ac7eec30ed98fe12547946c28c602e9e23ae Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:27:38 +0800 Subject: [PATCH 107/316] 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 6db1044a966ff6ef5b7d9b0aba1325e50932dd4b Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:27:40 +0800 Subject: [PATCH 108/316] 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 27980b4b1bc97bffeb4ca12c78e329033d47b4b3 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:27:41 +0800 Subject: [PATCH 109/316] 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 e5eafc0fc331b01828428b982bd5929d8d06b23a Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:27:42 +0800 Subject: [PATCH 110/316] 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 c359bd7c852c5a388e936a9baa9d1677b05014d2 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:27:44 +0800 Subject: [PATCH 111/316] 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 7553e29b5159310851b93c36f32d38ee6341faa3 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:27:45 +0800 Subject: [PATCH 112/316] 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 631310c19f400e67f0eac22b99b57655e303b877 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:27:47 +0800 Subject: [PATCH 113/316] 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 b459e64df780ef2dd520c3611f5cf788cf51da56 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:27:48 +0800 Subject: [PATCH 114/316] 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 682feb7fdc9b9a3b2629b38f2d6a86f04f0c1056 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:27:50 +0800 Subject: [PATCH 115/316] 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 a5c40b4d03bd400a6ba373b71e386064752bd5f5 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:27:51 +0800 Subject: [PATCH 116/316] 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 87c65b5521fc08c723c1f12bac0c3145a2c9ca1c Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:27:53 +0800 Subject: [PATCH 117/316] 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 2206ad8a6aa3c824fcdd1150d9c4bbb8f5721105 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:27:54 +0800 Subject: [PATCH 118/316] 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 c21741db584f0caeb87d1d62f685f9fa812e51e4 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:27:55 +0800 Subject: [PATCH 119/316] 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 5bbf4b9f76806ffc776dd5b0181fcbc1d7329461 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:27:57 +0800 Subject: [PATCH 120/316] 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 9f0b977d6651a67307eb0f4dec9644567d16a9e1 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:27:58 +0800 Subject: [PATCH 121/316] 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 6ee9057c5c50a42449ac178d61242010bcde6b40 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:28:00 +0800 Subject: [PATCH 122/316] 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 b594b6faad170d9a22995deb52ade45aeda9b68a Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:28:02 +0800 Subject: [PATCH 123/316] 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 4ed841ba4dd90acd2873f711395a6c838409ac0b Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:28:04 +0800 Subject: [PATCH 124/316] 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 7cdb124877fac0a48d70e766acf1a5392dc385fb Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:28:05 +0800 Subject: [PATCH 125/316] 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 278030466d5abee7abf91a02fd7ee4b9a3e41957 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:28:06 +0800 Subject: [PATCH 126/316] 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 529b179e3128a3365afbab7aaca8b6705aac5f33 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:28:08 +0800 Subject: [PATCH 127/316] 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 d55845ae9fc1645be7a0e3c20b6a20220a63173d Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:28:09 +0800 Subject: [PATCH 128/316] 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 a93e819750ad1ccf3ea01b5593878896452fb37a Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:28:10 +0800 Subject: [PATCH 129/316] 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 e8708a1a39e8e6a714bb554cdacb3e4eddb96c58 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:28:12 +0800 Subject: [PATCH 130/316] 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 d9a4a7b8483c4d47d9e46d529f9a3226eba293b3 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:28:13 +0800 Subject: [PATCH 131/316] 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 53508df3d30519c6661615529242e0c2491f10f2 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:28:14 +0800 Subject: [PATCH 132/316] 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 50a4341e90186588d994e471636e505842e73645 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:28:16 +0800 Subject: [PATCH 133/316] 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 0f033e0681d14ac3704c1dcf9b8176f1427d6767 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:28:17 +0800 Subject: [PATCH 134/316] 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 0d12bfa5aa36ba58ef6bdfb84c87f5efb06f368c Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:28:19 +0800 Subject: [PATCH 135/316] 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 2add5c555b4a24ba7178f40290d19c7fd1509c24 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:28:20 +0800 Subject: [PATCH 136/316] 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 23b4272da1085840b593554e8cffa530c979f39e Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:28:21 +0800 Subject: [PATCH 137/316] 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 b30e3ec08df754404abf70e12fa39faba8ca08b9 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:28:23 +0800 Subject: [PATCH 138/316] 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 cf8fabe1c3f12a6862373e662ff1772fea79c073 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:28:24 +0800 Subject: [PATCH 139/316] 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 2750d1f12f3e2e759d534d86eb636b5ff6686633 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:28:26 +0800 Subject: [PATCH 140/316] 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 76df07f8b9d8e039284cff7841e2f42c4742beef Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:28:27 +0800 Subject: [PATCH 141/316] 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 7401928ab372aec980a4b12e42cb4d68e7b5241b Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:28:29 +0800 Subject: [PATCH 142/316] 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 43e65ba75e670d26a12520b37800a421532f63ec Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:28:30 +0800 Subject: [PATCH 143/316] 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 59e893ed3e6aa4877f7314a504184935abee03c5 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:28:31 +0800 Subject: [PATCH 144/316] 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 925d920a472df5149988ae808de23f17ab780d26 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:28:33 +0800 Subject: [PATCH 145/316] 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 652f22827edb98ac81e38664f8eccc2921dde1aa Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:28:34 +0800 Subject: [PATCH 146/316] 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 a767c225104ca0ecae16ab39890fd805820c3f27 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:28:35 +0800 Subject: [PATCH 147/316] 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 747c4f1cc66827824cc9d241f6ba0f3263441788 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:28:37 +0800 Subject: [PATCH 148/316] 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 8e14bcbdd67f8acfd6d0fbca5f051e253c0167fc Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:28:38 +0800 Subject: [PATCH 149/316] 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 6f2d51c7a7166a162ad99ed3e2670abc51a0c860 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:28:39 +0800 Subject: [PATCH 150/316] 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 fa1875f65d2df70887c810e1f317d6c70d886c9a Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:28:41 +0800 Subject: [PATCH 151/316] 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 1757dee69a6f1b844fb6b94fbfde20f61e4b5f53 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:28:42 +0800 Subject: [PATCH 152/316] 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 68e463727df4f7cf29b8e50a44427314cb957540 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:28:43 +0800 Subject: [PATCH 153/316] 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 876c7ef771fc978ac1b4ad2c5eefddf12c276d21 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:28:45 +0800 Subject: [PATCH 154/316] 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 dd8ff25f780b426c531e5408950206ba02109b2d Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:28:46 +0800 Subject: [PATCH 155/316] 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 ff20998b03bf38c92951205de7925db3e6161a06 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:28:48 +0800 Subject: [PATCH 156/316] 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 d4f3d4317b1265ed13d80dbd96c7fdd6cff6f484 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:28:49 +0800 Subject: [PATCH 157/316] 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 6b776ac94efae62b9ed5ada5e876a325dce02dbd Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:28:50 +0800 Subject: [PATCH 158/316] 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 c6b7e3544df65a1f550c2b59d01b0a25d2799cd9 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:28:52 +0800 Subject: [PATCH 159/316] 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 d4f406ec3fcdbacc4f794c96fc17c111f27e623b Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:28:53 +0800 Subject: [PATCH 160/316] feat: update --- client/model/consoleadminsubmitrefundforms.go | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 client/model/consoleadminsubmitrefundforms.go diff --git a/client/model/consoleadminsubmitrefundforms.go b/client/model/consoleadminsubmitrefundforms.go new file mode 100644 index 00000000..23a75c6f --- /dev/null +++ b/client/model/consoleadminsubmitrefundforms.go @@ -0,0 +1,22 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminSubmitRefundForms struct { + // 商品编码 + CommodityCode string `json:"commodityCode"` + // 实例ID + InstanceId string `json:"instanceId"` + // 退订类型 + RefundType string `json:"refundType"` + // 退订理由 + RefundReason *string `json:"refundReason,omitempty"` + // 退订理由类型 + RefundReasonType *string `json:"refundReasonType,omitempty"` + // 退订后的过期时间 退续费场景使用 + TargetExpireTime *string `json:"targetExpireTime,omitempty"` +} From bebc231c9f6dcde295bbd8fdb8a6d34bd698eed0 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:28:55 +0800 Subject: [PATCH 161/316] feat: update --- client/model/consoleadminsubmitrefundresult.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/consoleadminsubmitrefundresult.go diff --git a/client/model/consoleadminsubmitrefundresult.go b/client/model/consoleadminsubmitrefundresult.go new file mode 100644 index 00000000..35181b1a --- /dev/null +++ b/client/model/consoleadminsubmitrefundresult.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminSubmitRefundResult struct { + Success bool `json:"success,omitempty"` + Model ConsoleAdminSubmitRefundResultModel `json:"model,omitempty"` + MsgInfo string `json:"msgInfo,omitempty"` + MsgCode string `json:"msgCode,omitempty"` +} From 1427c395b194f163c7741999b0c2a6f4f5c5ac14 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:28:56 +0800 Subject: [PATCH 162/316] feat: update --- .../model/consoleadminsubmitrefundresultmodel.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/model/consoleadminsubmitrefundresultmodel.go diff --git a/client/model/consoleadminsubmitrefundresultmodel.go b/client/model/consoleadminsubmitrefundresultmodel.go new file mode 100644 index 00000000..c7dcefbb --- /dev/null +++ b/client/model/consoleadminsubmitrefundresultmodel.go @@ -0,0 +1,14 @@ +// Package client +/* + * YuanJing OpenAPI SDK for Go + * + * + */ +package model + +type ConsoleAdminSubmitRefundResultModel struct { + // refundOrderId + RefundOrderId string `json:"refundOrderId,omitempty"` + // 是否提交成功 + SubmitSuccess bool `json:"submitSuccess,omitempty"` +} From d454f8f47264d48f60771a73518fbf100886faae Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:28:57 +0800 Subject: [PATCH 163/316] 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 3b474d0182c40f6598b031207092bb6d844899b1 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:28:59 +0800 Subject: [PATCH 164/316] 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 05c6f6cbce5315508c4eb5ab4ec442849c2e9221 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:29:00 +0800 Subject: [PATCH 165/316] 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 6aba4af99d33cee4070ec5a9d367a8b9c7e4e862 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:29:02 +0800 Subject: [PATCH 166/316] 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 8af774ba7f2e1254907f9b836142d1b3badd4407 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:29:04 +0800 Subject: [PATCH 167/316] 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 7b165f135ee19ce2aa8788ffd10f38967cb1a303 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:29:05 +0800 Subject: [PATCH 168/316] 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 ee2cfdbd1d477790096508570a697277f32bb575 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:29:06 +0800 Subject: [PATCH 169/316] 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 5820806e3a96d44e2c078bc29459b8a3c3a95e90 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:29:08 +0800 Subject: [PATCH 170/316] 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 73c18eadb19e00bfdf49a134e6d98a3494ca2a87 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:29:09 +0800 Subject: [PATCH 171/316] 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 1a790988a1f9d275e5d4aeaad18a77f0cc5d9c7e Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:29:10 +0800 Subject: [PATCH 172/316] 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 4f7602ac1c54430d0401a054cc5fdbe936986332 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:29:12 +0800 Subject: [PATCH 173/316] 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 2345e3009fc1b7456cd529273fd62fe723a3933b Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:29:13 +0800 Subject: [PATCH 174/316] 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 37d048477f520b988c6303f14d11624341570841 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:29:14 +0800 Subject: [PATCH 175/316] 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 7019e6a1029ab2b860548666cf9a2d87c86146ec Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:29:16 +0800 Subject: [PATCH 176/316] 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 1458886088fe07f2087ab442a69e37314e3f6a1a Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:29:17 +0800 Subject: [PATCH 177/316] 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 1f2e1cc6da396f5b0ac7f9637e1e5b3993bb8634 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:29:19 +0800 Subject: [PATCH 178/316] 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 2c743eb4a2a3c88b1ecf76e954cc0c37d4272fa7 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:29:20 +0800 Subject: [PATCH 179/316] 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 5ffdc51fa9bb00fca34535ee6d87520eb8c0b2ba Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:29:21 +0800 Subject: [PATCH 180/316] 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 e6365e560f2b2d3384b51f2dd0d481f9b1aef210 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:29:23 +0800 Subject: [PATCH 181/316] 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 c97911f91842305dfe2c5e3c75b9cad41918c3a2 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:29:24 +0800 Subject: [PATCH 182/316] 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 542c64cb6b4cefa3528509d611a20020e139ae04 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:29:25 +0800 Subject: [PATCH 183/316] 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 ea9b0bd0a527e6aba5bfa458471166e7ecf3bdee Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:29:27 +0800 Subject: [PATCH 184/316] 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 dd00fbe65d0c0adab4543001be203768dc9298fc Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:29:28 +0800 Subject: [PATCH 185/316] 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 ccda06b4b84e14fd2c912d8c01dbb10d3796877f Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:29:29 +0800 Subject: [PATCH 186/316] 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 bb187d3e659b58af58ca3cda8b69f5d37852919a Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:29:31 +0800 Subject: [PATCH 187/316] 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 6996f7d46f1e124fb36bc68ce934929c1bdb59d0 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:29:32 +0800 Subject: [PATCH 188/316] 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 5e72bb294ed61712fe53638536027d3f2695c6b5 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:29:33 +0800 Subject: [PATCH 189/316] 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 70197e83c1928ed2dc7585cfcfb3cbae51e1ab60 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:29:35 +0800 Subject: [PATCH 190/316] 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 181a0d3cd95a26a87682c7e723ec24c239cd90bf Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:29:36 +0800 Subject: [PATCH 191/316] 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 cd6a8aabbf13a3334b895aeaf9c3f6d97ac4b1e0 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:29:37 +0800 Subject: [PATCH 192/316] 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 4d91ac75b6849754d8e8959d84d61b7ff292350e Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:29:39 +0800 Subject: [PATCH 193/316] 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 7ca2aba680f48e4acebb848e37752c8e6490f6cd Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:29:40 +0800 Subject: [PATCH 194/316] 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 bab6c4b4606b2ec0debe78430ac32a8229ca3c3f Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:29:41 +0800 Subject: [PATCH 195/316] 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 a3206ad4afd01af5b26eb91b13da02481c690b34 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:29:43 +0800 Subject: [PATCH 196/316] 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 61129a8e6902f1853e4cbeb13b4329270c8ff621 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:29:44 +0800 Subject: [PATCH 197/316] 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 93e4f3eabb9eeb0f11296473707b8190b5175dcb Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:29:46 +0800 Subject: [PATCH 198/316] 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 ce92f4ebe6feca979f52d762a817a472e8b5beae Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:29:47 +0800 Subject: [PATCH 199/316] 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 fc4b45f01ae2703b955052ea79f35fd4fd3ce22d Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:29:48 +0800 Subject: [PATCH 200/316] 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 938bf08e8af6ed0bd436e34e38c8778dafb9c635 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:29:50 +0800 Subject: [PATCH 201/316] 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 4ea5a03e5dd283c770e03716463d8df11d539dd8 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:29:51 +0800 Subject: [PATCH 202/316] 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 11ff045d57814fcb54e7f1e3ffae1edea644e428 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:29:53 +0800 Subject: [PATCH 203/316] 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 00ea593c210b11a0014d1c527bca73553217f671 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:29:54 +0800 Subject: [PATCH 204/316] 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 3d7bc6c71bc07b85775614e76af37b98c0663c86 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:29:55 +0800 Subject: [PATCH 205/316] 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 f1bee96197083e18a731d492f21f38055aa5eb5c Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:29:57 +0800 Subject: [PATCH 206/316] 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 c107bbe7454896fff46b7c35923f64f4a203112a Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:29:58 +0800 Subject: [PATCH 207/316] 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 dd7bd33f6d0a2fac3244bb285095d687409bc6d9 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:30:00 +0800 Subject: [PATCH 208/316] 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 151d4e23605f6203fc41e872144b5a080ada88ed Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:30:01 +0800 Subject: [PATCH 209/316] 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 6dc0034fcdd4911e890b57f6eb048e87e8ff4bc0 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:30:03 +0800 Subject: [PATCH 210/316] 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 e5508075703809a10cd0be579e11177eb987f3f6 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:30:04 +0800 Subject: [PATCH 211/316] 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 0c03ffdb7c3b49bbddb80d3b8efcfb4d5df0b60d Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:30:05 +0800 Subject: [PATCH 212/316] 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 f26461f65da941558e68b887e672a67d36c2e3ff Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:30:07 +0800 Subject: [PATCH 213/316] 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 47b7259b36e8f2048bf5316585da185a728e95d5 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:30:09 +0800 Subject: [PATCH 214/316] 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 cd54c364485db0bab618ca74f87383017faa6b11 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:30:10 +0800 Subject: [PATCH 215/316] 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 f7bbd73f7ceffcba71995219ae18592ed849bb25 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:30:11 +0800 Subject: [PATCH 216/316] 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 7b3772407635f3c63126870bf5ae71e907e6bd74 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:30:13 +0800 Subject: [PATCH 217/316] 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 cfe077ea73abb197454fdb1c5b0bb11970dafeaa Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:30:14 +0800 Subject: [PATCH 218/316] 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 8f5c78f5229f941aa7caa384307b09592235a8f5 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:30:16 +0800 Subject: [PATCH 219/316] 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 76f37546861a8123d8a838a762f3df3ad6a3c4dd Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:30:17 +0800 Subject: [PATCH 220/316] 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 908a543c81a6866d5958ddb8cea6fcad765b9364 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:30:19 +0800 Subject: [PATCH 221/316] 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 fc205203d8aac18ee3e753146aec4afc414f010f Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:30:20 +0800 Subject: [PATCH 222/316] 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 885f151b84a7a7a4588a916e33b9bcc2175376ea Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:30:22 +0800 Subject: [PATCH 223/316] 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 7129b6c60b15780d122eec394d8481ba6ebf64ff Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:30:23 +0800 Subject: [PATCH 224/316] 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 003670b50f5c46434971949df1eed98f0e64b934 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:30:24 +0800 Subject: [PATCH 225/316] 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 e9a01dbfbab1ab417c17c882244ff9b536f2f888 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:30:26 +0800 Subject: [PATCH 226/316] 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 7a01f0d77d72e740c294fac1af9235a08fffbed6 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:30:27 +0800 Subject: [PATCH 227/316] 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 4874fe0b0c7d0c86ad99ba9f36a158a8e8c91ce5 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:30:29 +0800 Subject: [PATCH 228/316] 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 5a9d550f9367a7e7472486dbff508f5ac10d7a8e Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:30:30 +0800 Subject: [PATCH 229/316] 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 8de441779504fb0fb86d670fb506c9b1adbb2d5d Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:30:31 +0800 Subject: [PATCH 230/316] 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 8e7e597175469d0e4091438cece39ca1245c378f Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:30:33 +0800 Subject: [PATCH 231/316] 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 0e82618e53c07aadf1f6d1557e588038f597e19b Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:30:34 +0800 Subject: [PATCH 232/316] 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 1d5aa611b65be2597c8757c05bb33475ad9156d4 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:30:36 +0800 Subject: [PATCH 233/316] 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 26382bb6a5cb0a45bbbbdfb0a4a183eaa4ff1613 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:30:37 +0800 Subject: [PATCH 234/316] 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 5282c8e10ecd27c1eea919ff1f1f6fad5336af53 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:30:38 +0800 Subject: [PATCH 235/316] 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 e6a9386206b78c00f51f72343b8579afad6aa9c8 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:30:40 +0800 Subject: [PATCH 236/316] 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 18f08f2ddf67bfd9fef051a8b7d963f14ce148fc Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:30:41 +0800 Subject: [PATCH 237/316] 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 71b60f0ed23c069837e584f434feb9f3e6d64f61 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:30:42 +0800 Subject: [PATCH 238/316] 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 bcd6f57611bc8e304f99704c2e9362f5d5c778ee Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:30:44 +0800 Subject: [PATCH 239/316] 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 fb0a01c21e81b43c6b9f7727ff37157d42acb828 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:30:45 +0800 Subject: [PATCH 240/316] 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 3d67d0506a0c0558e3f361eebd3d227d0b9b5fd1 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:30:47 +0800 Subject: [PATCH 241/316] 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 8730d42318746f0807fb148040cd03a4e79eecb4 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:30:48 +0800 Subject: [PATCH 242/316] 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 bfd64c3a39e341ed8c4aec481423c5982b145d90 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:30:49 +0800 Subject: [PATCH 243/316] 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 bb06915d5ebd328f23010af2da9455557dbc4c2f Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:30:51 +0800 Subject: [PATCH 244/316] 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 1006dbd1cd710bc2fed066139214ac59efcf1dfe Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:30:52 +0800 Subject: [PATCH 245/316] 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 5445b5e8680fef96990ec9de4191516ac23981eb Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:30:54 +0800 Subject: [PATCH 246/316] 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 c3e525c73590ef83bb0f1bda36d97be2396e9e9f Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:30:55 +0800 Subject: [PATCH 247/316] 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 a6498921bc9905ff596320022f3e039844235eff Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:30:56 +0800 Subject: [PATCH 248/316] 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 e6050c374f5f26e170355d34a968ff3819f24fc1 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:30:58 +0800 Subject: [PATCH 249/316] 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 2492949eb68191495083b56ad2d30d918ce4e5e1 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:30:59 +0800 Subject: [PATCH 250/316] 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 8da697674309c6a9d2896826ee66954c35a57bbb Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:31:00 +0800 Subject: [PATCH 251/316] 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 80a231fbff8affc1eb98196fe2d14e26af43e36e Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:31:02 +0800 Subject: [PATCH 252/316] 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 016b9d2dc060dea01fb22d66d833bf47f4c11856 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:31:03 +0800 Subject: [PATCH 253/316] 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 ad94bab8b41cecfa1ef1d63304bf14ee5ead83a1 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:31:05 +0800 Subject: [PATCH 254/316] 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 ca734abd3c48446296e8a51e920e1128a09b2f77 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:31:06 +0800 Subject: [PATCH 255/316] 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 77e8342d07e9c8b674d23ba05949e84d0fe67d7e Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:31:07 +0800 Subject: [PATCH 256/316] 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 63c9b512669185b122609a82217e42cb1dcd769f Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:31:09 +0800 Subject: [PATCH 257/316] 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 7e73a10078e0b5027b779a32e162fd4b20642f15 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:31:11 +0800 Subject: [PATCH 258/316] 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 9bc0742a92915633dbc31a74d08d5fb05ed8bd82 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:31:12 +0800 Subject: [PATCH 259/316] 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 a7e9ef7a1b430240b0f0c40cedd3914ace98d062 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:31:13 +0800 Subject: [PATCH 260/316] 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 4818e7ce2d074ab7ac000bd119dd2f928c0fd3dd Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:31:15 +0800 Subject: [PATCH 261/316] 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 c0d21bf95f189bbd75cdb97c6bc52d6683533d15 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:31:16 +0800 Subject: [PATCH 262/316] 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 e7b25ea8365e3df18d81dcc27f6b96228de1b0cb Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:31:18 +0800 Subject: [PATCH 263/316] 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 2a07064fa6344afc31fe0a71af43266047fc42c4 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:31:19 +0800 Subject: [PATCH 264/316] 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 cb55c2c9f19b072e14963e074a17ac5574c2e876 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:31:20 +0800 Subject: [PATCH 265/316] 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 f27d6adc34d0cd06e4e9d939afb6c2aa2f0d770c Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:31:22 +0800 Subject: [PATCH 266/316] 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 80b767a8670e8d70a427b044e0a3f711603be62c Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:31:23 +0800 Subject: [PATCH 267/316] 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 d20e876a63082cc81cbb190de060cc72b25b745a Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:31:24 +0800 Subject: [PATCH 268/316] 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 da498823f9a83c996229898434e7e5d153f2fea0 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:31:26 +0800 Subject: [PATCH 269/316] 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 af0cead14c1b18422503585268ce76d6cb6db293 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:31:27 +0800 Subject: [PATCH 270/316] 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 debf321d9c27370b772cb2bcc2457df0118fd900 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:31:28 +0800 Subject: [PATCH 271/316] 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 02c83c83f58c1b803cca2058e4a001f810391d0c Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:31:30 +0800 Subject: [PATCH 272/316] 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 87c1563ee8498585203690a95f2c622c8f294c58 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:31:31 +0800 Subject: [PATCH 273/316] 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 5877ad405f490ddd63c2553940059e4e12c5a9f4 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:31:33 +0800 Subject: [PATCH 274/316] 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 193b6643a86bbf22821086664e3a65a295a25d0a Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:31:34 +0800 Subject: [PATCH 275/316] 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 3f3ba35d5f0cae9c923348de84ef4833b217cff3 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:31:35 +0800 Subject: [PATCH 276/316] 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 f8624d6453f154740ad321dda6f65922a33da57d Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:31:37 +0800 Subject: [PATCH 277/316] 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 0441eae87f968a1bfe005b09419ab2767cb5cdb5 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:31:38 +0800 Subject: [PATCH 278/316] feat: update --- client/api/ai_api.go | 740 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 740 insertions(+) create mode 100644 client/api/ai_api.go diff --git a/client/api/ai_api.go b/client/api/ai_api.go new file mode 100644 index 00000000..dd27f8f4 --- /dev/null +++ b/client/api/ai_api.go @@ -0,0 +1,740 @@ +// 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 AiApiService service + + +// BatchUpdateKbVersion +/* + * + * @param varForms model.AiBatchUpdateKbVersionForms + */ +func (s *AiApiService) BatchUpdateKbVersion( + varForms *model.AiBatchUpdateKbVersionForms, +) (model.AiBatchUpdateKbVersionResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.AiBatchUpdateKbVersionResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/ai/batchUpdateKbVersion" + + 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("roleIds", parameterToString(varForms.RoleIds, "multi")) + varFormParams.Add("kbId", parameterToString(varForms.KbId, "")) + varFormParams.Add("kbVersionId", parameterToString(varForms.KbVersionId, "")) + varFormParams.Add("operator", parameterToString(varForms.Operator, "")) + + 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 +} + +// CancelQueue +/* + * 取消排队 + * @param varForms model.AiCancelQueueForms + */ +func (s *AiApiService) CancelQueue( + varForms *model.AiCancelQueueForms, +) (model.AiCancelQueueResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.AiCancelQueueResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/ai/cancelQueue" + + 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 +} + +// CreateNpcRole +/* + * + * @param varForms model.AiCreateNpcRoleForms + */ +func (s *AiApiService) CreateNpcRole( + varForms *model.AiCreateNpcRoleForms, +) (model.AiCreateNpcRoleResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.AiCreateNpcRoleResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/ai/createNpcRole" + + 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("name", parameterToString(varForms.Name, "")) + varFormParams.Add("description", parameterToString(varForms.Description, "")) + varFormParams.Add("figureId", parameterToString(varForms.FigureId, "")) + varFormParams.Add("voiceId", parameterToString(varForms.VoiceId, "")) + varFormParams.Add("characters", parameterToString(varForms.Characters, "")) + varFormParams.Add("greetings", parameterToString(varForms.Greetings, "")) + varFormParams.Add("guidance", parameterToString(varForms.Guidance, "multi")) + if varForms != nil && varForms.KnowledgeBases != nil { + varFormParams.Add("knowledgeBases", parameterToString(*varForms.KnowledgeBases, "multi")) + } + if varForms != nil && varForms.PluginIds != nil { + varFormParams.Add("pluginIds", parameterToString(*varForms.PluginIds, "multi")) + } + varFormParams.Add("shortMemoryRound", parameterToString(varForms.ShortMemoryRound, "")) + varFormParams.Add("tenantId", parameterToString(varForms.TenantId, "")) + varFormParams.Add("operator", parameterToString(varForms.Operator, "")) + varFormParams.Add("llmModelId", parameterToString(varForms.LlmModelId, "")) + + 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 +} + +// DeleteModels +/* + * 删除私有模型 + * @param varForms model.AiDeleteModelsForms + */ +func (s *AiApiService) DeleteModels( + varForms *model.AiDeleteModelsForms, +) (model.AiDeleteModelsResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.AiDeleteModelsResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/ai/deleteModels" + + 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("resourceId", parameterToString(varForms.ResourceId, "")) + + 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 +} + +// GetQueue +/* + * 查询排队 + * @param varForms model.AiGetQueueForms + */ +func (s *AiApiService) GetQueue( + varForms *model.AiGetQueueForms, +) (model.AiGetQueueResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.AiGetQueueResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/ai/getQueue" + + 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 +} + +// ListModels +/* + * 查看私有模型列表 + * @param varForms model.AiListModelsForms + */ +func (s *AiApiService) ListModels( + varForms *model.AiListModelsForms, +) (model.AiListModelsResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.AiListModelsResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/ai/listModels" + + 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.ModelType != nil { + varFormParams.Add("modelType", parameterToString(*varForms.ModelType, "")) + } + if varForms != nil && varForms.ModelFileType != nil { + varFormParams.Add("modelFileType", parameterToString(*varForms.ModelFileType, "")) + } + if varForms != nil && varForms.ModelSeries != nil { + varFormParams.Add("modelSeries", parameterToString(*varForms.ModelSeries, "")) + } + if varForms != nil && varForms.ModelFileName != nil { + varFormParams.Add("modelFileName", parameterToString(*varForms.ModelFileName, "")) + } + varFormParams.Add("pageNumber", parameterToString(varForms.PageNumber, "")) + 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 +} + +// UpdateModels +/* + * 修改私有模型信息 + * @param varForms model.AiUpdateModelsForms + */ +func (s *AiApiService) UpdateModels( + varForms *model.AiUpdateModelsForms, +) (model.AiUpdateModelsResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.AiUpdateModelsResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/ai/updateModels" + + 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("resourceId", parameterToString(varForms.ResourceId, "")) + varFormParams.Add("desc", parameterToString(varForms.Desc, "")) + + 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 +} + +// UpdateNpcRole +/* + * + * @param varForms model.AiUpdateNpcRoleForms + */ +func (s *AiApiService) UpdateNpcRole( + varForms *model.AiUpdateNpcRoleForms, +) (model.AiUpdateNpcRoleResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.AiUpdateNpcRoleResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/ai/updateNpcRole" + + 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, "")) + varFormParams.Add("name", parameterToString(varForms.Name, "")) + varFormParams.Add("description", parameterToString(varForms.Description, "")) + varFormParams.Add("figureId", parameterToString(varForms.FigureId, "")) + varFormParams.Add("voiceId", parameterToString(varForms.VoiceId, "")) + varFormParams.Add("characters", parameterToString(varForms.Characters, "")) + varFormParams.Add("greetings", parameterToString(varForms.Greetings, "")) + varFormParams.Add("guidance", parameterToString(varForms.Guidance, "multi")) + if varForms != nil && varForms.KnowledgeBases != nil { + varFormParams.Add("knowledgeBases", parameterToString(*varForms.KnowledgeBases, "multi")) + } + if varForms != nil && varForms.PluginIds != nil { + varFormParams.Add("pluginIds", parameterToString(*varForms.PluginIds, "multi")) + } + varFormParams.Add("shortMemoryRound", parameterToString(varForms.ShortMemoryRound, "")) + varFormParams.Add("operator", parameterToString(varForms.Operator, "")) + varFormParams.Add("llmModelId", parameterToString(varForms.LlmModelId, "")) + + 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 +} + +// UploadModels +/* + * 上传私有模型 + * @param varForms model.AiUploadModelsForms + */ +func (s *AiApiService) UploadModels( + varForms *model.AiUploadModelsForms, +) (model.AiUploadModelsResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.AiUploadModelsResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/ai/uploadModels" + + 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("modelType", parameterToString(varForms.ModelType, "")) + varFormParams.Add("modelName", parameterToString(varForms.ModelName, "")) + varFormParams.Add("modelFilePath", parameterToString(varForms.ModelFilePath, "")) + varFormParams.Add("modelFiles", parameterToString(varForms.ModelFiles, "multi")) + if varForms != nil && varForms.Desc != nil { + varFormParams.Add("desc", parameterToString(*varForms.Desc, "")) + } + varFormParams.Add("modelFileType", parameterToString(varForms.ModelFileType, "")) + + 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 d332c69f5e23c0570048ca5f135e8392badf58f6 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:31:40 +0800 Subject: [PATCH 279/316] feat: update --- client/api/console_admin_api.go | 2867 +++++++++++++++++++++++++++++++ 1 file changed, 2867 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..d9721985 --- /dev/null +++ b/client/api/console_admin_api.go @@ -0,0 +1,2867 @@ +// 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 +} + +// SubmitRefund +/* + * 订单退订 + * @param varForms model.ConsoleAdminSubmitRefundForms + */ +func (s *ConsoleAdminApiService) SubmitRefund( + varForms *model.ConsoleAdminSubmitRefundForms, +) (model.ConsoleAdminSubmitRefundResult, *http.Response, error) { + var ( + varHttpMethod = strings.ToUpper("Post") + varReturnValue model.ConsoleAdminSubmitRefundResult + ) + + // create path and map variables + varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/consoleAdmin/submitRefund" + + 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("commodityCode", parameterToString(varForms.CommodityCode, "")) + varFormParams.Add("instanceId", parameterToString(varForms.InstanceId, "")) + varFormParams.Add("refundType", parameterToString(varForms.RefundType, "")) + if varForms != nil && varForms.RefundReason != nil { + varFormParams.Add("refundReason", parameterToString(*varForms.RefundReason, "")) + } + if varForms != nil && varForms.RefundReasonType != nil { + varFormParams.Add("refundReasonType", parameterToString(*varForms.RefundReasonType, "")) + } + if varForms != nil && varForms.TargetExpireTime != nil { + varFormParams.Add("targetExpireTime", parameterToString(*varForms.TargetExpireTime, "")) + } + + 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 0405ee30c095dc3eec42f2e70cf324a7787a6033 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:31:42 +0800 Subject: [PATCH 280/316] 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 30c3f1291bab117fdc7880e00d858fb7257f48ac Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:31:43 +0800 Subject: [PATCH 281/316] 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 4a87ab18a003409c9ed4993e1cb9e5d03ad72316 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:31:45 +0800 Subject: [PATCH 282/316] 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 f7ddc1f05646cb18b754698567fdd54ad2f161b2 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:31:46 +0800 Subject: [PATCH 283/316] 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 3c7f5c5f52a60b6cdb129e042eddaa8d2ce75960 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:31:48 +0800 Subject: [PATCH 284/316] 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 b013ba979ae823760b2767410bf23b29cebb113a Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:31:49 +0800 Subject: [PATCH 285/316] feat: update --- client/api/client.go | 441 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 441 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..dc81babf --- /dev/null +++ b/client/api/client.go @@ -0,0 +1,441 @@ +// 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 + + AiApi *AiApiService + + 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.AiApi = (*AiApiService)(&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 c9ee1db1937a757d961330e6395cce8d6a8a5bb9 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:31:50 +0800 Subject: [PATCH 286/316] 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 03e83decfed3251801b8dff3e642686a97fd2484 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:31:51 +0800 Subject: [PATCH 287/316] 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 4175357e58175a826570be6a5de1aa861ad6127a Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:31:53 +0800 Subject: [PATCH 288/316] feat: update --- README.md | 132 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 132 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 00000000..73dcad75 --- /dev/null +++ b/README.md @@ -0,0 +1,132 @@ +![](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.20241219 +``` + +## 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 | + | *AiApi* | **BatchUpdateKbVersion** | *BatchUpdateKbVersionForms* | *AiBatchUpdateKbVersionResult* | | + | *AiApi* | **CancelQueue** | *CancelQueueForms* | *AiCancelQueueResult* | 取消排队 | + | *AiApi* | **CreateNpcRole** | *CreateNpcRoleForms* | *AiCreateNpcRoleResult* | | + | *AiApi* | **DeleteModels** | *DeleteModelsForms* | *AiDeleteModelsResult* | 删除私有模型 | + | *AiApi* | **GetQueue** | *GetQueueForms* | *AiGetQueueResult* | 查询排队 | + | *AiApi* | **ListModels** | *ListModelsForms* | *AiListModelsResult* | 查看私有模型列表 | + | *AiApi* | **UpdateModels** | *UpdateModelsForms* | *AiUpdateModelsResult* | 修改私有模型信息 | + | *AiApi* | **UpdateNpcRole** | *UpdateNpcRoleForms* | *AiUpdateNpcRoleResult* | | + | *AiApi* | **UploadModels** | *UploadModelsForms* | *AiUploadModelsResult* | 上传私有模型 | + | *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* | **SubmitRefund** | *SubmitRefundForms* | *ConsoleAdminSubmitRefundResult* | 订单退订 | + | *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. + + From 036018b1f5cd81737b52eb57ce11f0a2a1859375 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:31:54 +0800 Subject: [PATCH 289/316] feat: update From fede1ef45a46e7e3252298d4697613c8a1c1a035 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:31:56 +0800 Subject: [PATCH 290/316] feat: update From 7e3c933b8caf89935c8f692f276205352935ce1d Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:31:57 +0800 Subject: [PATCH 291/316] feat: update From 3230acf940f84aff39fc0227050f071dd203eba4 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:31:59 +0800 Subject: [PATCH 292/316] feat: update From e45de34124012db5436ad7473f545a585b734f2e Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:32:00 +0800 Subject: [PATCH 293/316] feat: update From ca179be28278564595738aa188cd1874c539b493 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:32:01 +0800 Subject: [PATCH 294/316] feat: update From 95d42afb252df69e6d21a1fada4ebe973cb44650 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:32:03 +0800 Subject: [PATCH 295/316] feat: update From 28b64d838b7c6ba9d47ca83f8d73624c4bb70212 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:32:04 +0800 Subject: [PATCH 296/316] feat: update From 81712ca2f9bded7aec8bc22e7ad5e36dc956b652 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:32:06 +0800 Subject: [PATCH 297/316] feat: update From 55670612c6ca7ebed5182d8423cc2aa7f2243bb1 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:32:07 +0800 Subject: [PATCH 298/316] feat: update From 356e7f72c8a5d6ce50cf322ca303b2b2c79527f8 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:32:09 +0800 Subject: [PATCH 299/316] feat: update From fb74cf69f53f2adff7c1e8a41d86a7bee7a0cc5e Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:32:10 +0800 Subject: [PATCH 300/316] feat: update From 72a84c0f51a7dd55c35e55da44d2d2fed899230d Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:32:11 +0800 Subject: [PATCH 301/316] feat: update From 48d27531495d39574e8cc13fbf8db2e72b3bb196 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:32:13 +0800 Subject: [PATCH 302/316] feat: update From 21c07ca2db46bfc3284e5350f64fc1c9cd0f98ba Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:32:14 +0800 Subject: [PATCH 303/316] feat: update From 3c9ffac3602c8c7e884ccc7e7d785749203e7930 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:32:15 +0800 Subject: [PATCH 304/316] feat: update From 6691a093e26c8c8a2c2aadd2939c03f78309c295 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:32:17 +0800 Subject: [PATCH 305/316] feat: update From 85bcc2b8a63ee89dbae904c190302d25af6e39d6 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:32:18 +0800 Subject: [PATCH 306/316] feat: update From 8aba2f010f84fb6ba46cda1385b7aae40969a4ed Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:32:19 +0800 Subject: [PATCH 307/316] feat: update From a142a82dd86c2df3790e67ac67d7112f62d36c7b Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:32:21 +0800 Subject: [PATCH 308/316] feat: update From 428d1af435cc4d6e4d58d80a9a7d9dcff7125174 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:32:22 +0800 Subject: [PATCH 309/316] feat: update From 7382117949e63f9959a0e9f1be18fdffc289598a Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:32:23 +0800 Subject: [PATCH 310/316] feat: update From db0214f90a14c1539e8255340605da24f660edf4 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:32:25 +0800 Subject: [PATCH 311/316] feat: update From 4174cc3aed9e69b6ac7ad4cc0a66c17bf16351c8 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:32:26 +0800 Subject: [PATCH 312/316] feat: update From 852dd6e303d009017e18545a3c7cfc8e6dca1323 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:32:27 +0800 Subject: [PATCH 313/316] feat: update From b8e678b68e0002649b9290bba0e17c039c9e0b7f Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:32:29 +0800 Subject: [PATCH 314/316] feat: update From 93675737b15852784274edccdfa93ba21d16ab0d Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:32:30 +0800 Subject: [PATCH 315/316] feat: update From 9a463d8297f70cd170057ed17922c53eee7411a4 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 19 Dec 2024 00:32:31 +0800 Subject: [PATCH 316/316] feat: update