aliyun / alibaba-cloud-sdk-go

Alibaba Cloud SDK for Go
Apache License 2.0
1.16k stars 273 forks source link

类型定义不正确 #599

Closed feeops closed 10 months ago

feeops commented 1 year ago
type DataInDescribeInstanceBill struct {
    BillingCycle string                        `json:"BillingCycle" xml:"BillingCycle"`
    AccountID    string                        `json:"AccountID" xml:"AccountID"`
    AccountName  string                        `json:"AccountName" xml:"AccountName"`
    TotalCount   int                           `json:"TotalCount" xml:"TotalCount"`
    NextToken    string                        `json:"NextToken" xml:"NextToken"`
    MaxResults   int                           `json:"MaxResults" xml:"MaxResults"`
    Items        []ItemsInDescribeInstanceBill `json:"Items" xml:"Items"`
}
// ItemsInDescribeInstanceBill is a nested struct in bssopenapi response
type ItemsInDescribeInstanceBill struct {
    Item []Item `json:"Item" xml:"Item"`
}

Items又嵌入Item,双层数组,不太对吧?