Sfoglia il codice sorgente

Optimize topic create parameters.

sdk-team 6 anni fa
parent
commit
1a5bfd6514
2 ha cambiato i file con 10 aggiunte e 8 eliminazioni
  1. 3 0
      ChangeLog.txt
  2. 7 8
      services/alikafka/create_topic.go

+ 3 - 0
ChangeLog.txt

@@ -1,3 +1,6 @@
+2019-08-19 Version: 1.60.108
+- Optimize topic create parameters.
+
 2019-08-18 Version: 1.60.107
 - Support go sdk.
 

+ 7 - 8
services/alikafka/create_topic.go

@@ -76,14 +76,13 @@ func (client *Client) CreateTopicWithCallback(request *CreateTopicRequest, callb
 // CreateTopicRequest is the request struct for api CreateTopic
 type CreateTopicRequest struct {
 	*requests.RpcRequest
-	InstanceId        string           `position:"Query" name:"InstanceId"`
-	Topic             string           `position:"Query" name:"Topic"`
-	Remark            string           `position:"Query" name:"Remark"`
-	CompactTopic      string           `position:"Query" name:"CompactTopic"`
-	PartitionNum      string           `position:"Query" name:"PartitionNum"`
-	ReplicationFactor string           `position:"Query" name:"ReplicationFactor"`
-	LocalTopic        string           `position:"Query" name:"LocalTopic"`
-	OrderType         requests.Integer `position:"Query" name:"OrderType"`
+	InstanceId   string           `position:"Query" name:"InstanceId"`
+	Topic        string           `position:"Query" name:"Topic"`
+	Remark       string           `position:"Query" name:"Remark"`
+	CompactTopic requests.Boolean `position:"Query" name:"CompactTopic"`
+	PartitionNum string           `position:"Query" name:"PartitionNum"`
+	LocalTopic   requests.Boolean `position:"Query" name:"LocalTopic"`
+	OrderType    requests.Integer `position:"Query" name:"OrderType"`
 }
 
 // CreateTopicResponse is the response struct for api CreateTopic