Browse Source

Modify getTopicList and getConsumerList response.

sdk-team 6 years ago
parent
commit
4ec5155536

+ 3 - 0
ChangeLog.txt

@@ -1,3 +1,6 @@
+2019-08-21 Version: 1.60.112
+- Modify getTopicList and getConsumerList response.
+
 2019-08-21 Version: 1.60.111
 - Modify getInstanceList response.
 

+ 1 - 1
services/alikafka/struct_consumer_list.go

@@ -17,5 +17,5 @@ package alikafka
 
 // ConsumerList is a nested struct in alikafka response
 type ConsumerList struct {
-	ConsumerListItem []ConsumerListItem `json:"ConsumerListItem" xml:"ConsumerListItem"`
+	ConsumerVO []ConsumerVO `json:"ConsumerVO" xml:"ConsumerVO"`
 }

+ 2 - 2
services/alikafka/struct_consumer_list_item.go → services/alikafka/struct_consumer_vo.go

@@ -15,8 +15,8 @@ package alikafka
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-// ConsumerListItem is a nested struct in alikafka response
-type ConsumerListItem struct {
+// ConsumerVO is a nested struct in alikafka response
+type ConsumerVO struct {
 	RegionId   string `json:"RegionId" xml:"RegionId"`
 	InstanceId string `json:"InstanceId" xml:"InstanceId"`
 	ConsumerId string `json:"ConsumerId" xml:"ConsumerId"`

+ 1 - 1
services/alikafka/struct_topic_list_in_get_topic_list.go

@@ -17,5 +17,5 @@ package alikafka
 
 // TopicListInGetTopicList is a nested struct in alikafka response
 type TopicListInGetTopicList struct {
-	TopicListItem []TopicListItem `json:"TopicListItem" xml:"TopicListItem"`
+	TopicVO []TopicVO `json:"TopicVO" xml:"TopicVO"`
 }

+ 1 - 10
services/alikafka/struct_topic_list_item.go

@@ -17,17 +17,8 @@ package alikafka
 
 // TopicListItem is a nested struct in alikafka response
 type TopicListItem struct {
-	Status        int        `json:"Status" xml:"Status"`
-	TotalDiff     int64      `json:"TotalDiff" xml:"TotalDiff"`
-	Remark        string     `json:"Remark" xml:"Remark"`
-	CreateTime    int64      `json:"CreateTime" xml:"CreateTime"`
-	PartitionNum  int        `json:"PartitionNum" xml:"PartitionNum"`
-	StatusName    string     `json:"StatusName" xml:"StatusName"`
-	RegionId      string     `json:"RegionId" xml:"RegionId"`
-	InstanceId    string     `json:"InstanceId" xml:"InstanceId"`
-	CompactTopic  bool       `json:"CompactTopic" xml:"CompactTopic"`
-	LocalTopic    bool       `json:"LocalTopic" xml:"LocalTopic"`
 	Topic         string     `json:"Topic" xml:"Topic"`
+	TotalDiff     int64      `json:"TotalDiff" xml:"TotalDiff"`
 	LastTimestamp int64      `json:"LastTimestamp" xml:"LastTimestamp"`
 	OffsetList    OffsetList `json:"OffsetList" xml:"OffsetList"`
 }

+ 30 - 0
services/alikafka/struct_topic_vo.go

@@ -0,0 +1,30 @@
+package alikafka
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// TopicVO is a nested struct in alikafka response
+type TopicVO struct {
+	Topic        string `json:"Topic" xml:"Topic"`
+	CreateTime   int64  `json:"CreateTime" xml:"CreateTime"`
+	Remark       string `json:"Remark" xml:"Remark"`
+	Status       int    `json:"Status" xml:"Status"`
+	InstanceId   string `json:"InstanceId" xml:"InstanceId"`
+	RegionId     string `json:"RegionId" xml:"RegionId"`
+	StatusName   string `json:"StatusName" xml:"StatusName"`
+	CompactTopic bool   `json:"CompactTopic" xml:"CompactTopic"`
+	LocalTopic   bool   `json:"LocalTopic" xml:"LocalTopic"`
+	PartitionNum int    `json:"PartitionNum" xml:"PartitionNum"`
+}