Fix the param type
This commit is contained in:
@@ -69,7 +69,7 @@ func main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// opt := &cos.ObjectListPartsOptions{
|
// opt := &cos.ObjectListPartsOptions{
|
||||||
// MaxParts: 1,
|
// MaxParts: "1",
|
||||||
// }
|
// }
|
||||||
v, _, err := c.Object.ListParts(ctx, name, uploadID, nil)
|
v, _, err := c.Object.ListParts(ctx, name, uploadID, nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
@@ -412,8 +412,8 @@ func (s *ObjectService) DeleteMulti(ctx context.Context, opt *ObjectDeleteMultiO
|
|||||||
type Object struct {
|
type Object struct {
|
||||||
Key string `xml:",omitempty"`
|
Key string `xml:",omitempty"`
|
||||||
ETag string `xml:",omitempty"`
|
ETag string `xml:",omitempty"`
|
||||||
Size int `xml:",omitempty"`
|
Size string `xml:",omitempty"`
|
||||||
PartNumber int `xml:",omitempty"`
|
PartNumber string `xml:",omitempty"`
|
||||||
LastModified string `xml:",omitempty"`
|
LastModified string `xml:",omitempty"`
|
||||||
StorageClass string `xml:",omitempty"`
|
StorageClass string `xml:",omitempty"`
|
||||||
Owner *Owner `xml:",omitempty"`
|
Owner *Owner `xml:",omitempty"`
|
||||||
|
|||||||
@@ -70,8 +70,8 @@ func (s *ObjectService) UploadPart(ctx context.Context, name, uploadID string, p
|
|||||||
// ObjectListPartsOptions is the option of ListParts
|
// ObjectListPartsOptions is the option of ListParts
|
||||||
type ObjectListPartsOptions struct {
|
type ObjectListPartsOptions struct {
|
||||||
EncodingType string `url:"Encoding-type,omitempty"`
|
EncodingType string `url:"Encoding-type,omitempty"`
|
||||||
MaxParts int `url:"max-parts,omitempty"`
|
MaxParts string `url:"max-parts,omitempty"`
|
||||||
PartNumberMarker int `url:"part-number-marker,omitempty"`
|
PartNumberMarker string `url:"part-number-marker,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ObjectListPartsResult is the result of ListParts
|
// ObjectListPartsResult is the result of ListParts
|
||||||
@@ -84,9 +84,9 @@ type ObjectListPartsResult struct {
|
|||||||
Initiator *Initiator `xml:"Initiator,omitempty"`
|
Initiator *Initiator `xml:"Initiator,omitempty"`
|
||||||
Owner *Owner `xml:"Owner,omitempty"`
|
Owner *Owner `xml:"Owner,omitempty"`
|
||||||
StorageClass string
|
StorageClass string
|
||||||
PartNumberMarker int
|
PartNumberMarker string
|
||||||
NextPartNumberMarker int `xml:"NextPartNumberMarker,omitempty"`
|
NextPartNumberMarker string `xml:"NextPartNumberMarker,omitempty"`
|
||||||
MaxParts int
|
MaxParts string
|
||||||
IsTruncated bool
|
IsTruncated bool
|
||||||
Parts []Object `xml:"Part,omitempty"`
|
Parts []Object `xml:"Part,omitempty"`
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user