Browse Source

Merge pull request #318 from aliyun/dev_8.19

fix:solve the problem of wrong struct
wenzuochao 6 năm trước cách đây
mục cha
commit
d73869dfd2
2 tập tin đã thay đổi với 18 bổ sung6 xóa
  1. 7 3
      services/nas/describe_tags.go
  2. 11 3
      services/nas/describe_zones.go

+ 7 - 3
services/nas/describe_tags.go

@@ -102,9 +102,13 @@ type DescribeTagsTags0 struct {
 }
 
 type DescribeTagsTag1 struct {
-	Key           string   `json:"Key" xml:"Key"`
-	Value         string   `json:"Value" xml:"Value"`
-	FileSystemIds []string `json:"FileSystemIds" xml:"FileSystemIds"`
+	Key           string                     `json:"Key" xml:"Key"`
+	Value         string                     `json:"Value" xml:"Value"`
+	FileSystemIds DescribeTagsFileSystemIds2 `json:"FileSystemIds" xml:"FileSystemIds"`
+}
+
+type DescribeTagsFileSystemIds2 struct {
+	FileSystemId []string `json:"FileSystemId" xml:"FileSystemId"`
 }
 
 // CreateDescribeTagsRequest creates a request to invoke DescribeTags API

+ 11 - 3
services/nas/describe_zones.go

@@ -91,9 +91,17 @@ type DescribeZonesZones0 struct {
 }
 
 type DescribeZonesZone1 struct {
-	ZoneId      string   `json:"ZoneId" xml:"ZoneId"`
-	Capacity    []string `json:"Capacity" xml:"Capacity"`
-	Performance []string `json:"Performance" xml:"Performance"`
+	ZoneId      string                    `json:"ZoneId" xml:"ZoneId"`
+	Capacity    DescribeZonesCapacity2    `json:"Capacity" xml:"Capacity"`
+	Performance DescribeZonesPerformance2 `json:"Performance" xml:"Performance"`
+}
+
+type DescribeZonesCapacity2 struct {
+	Protocol []string `json:"Protocol" xml:"Protocol"`
+}
+
+type DescribeZonesPerformance2 struct {
+	Protocol []string `json:"Protocol" xml:"Protocol"`
 }
 
 // CreateDescribeZonesRequest creates a request to invoke DescribeZones API