diff --git a/ci_media.go b/ci_media.go index cb4441f..bece15f 100644 --- a/ci_media.go +++ b/ci_media.go @@ -156,17 +156,17 @@ type CreateMediaJobsResult struct { } type CreateMultiMediaJobsOptions struct { - XMLName xml.Name `xml:"Request"` - Tag string `xml:"Tag,omitempty"` - Input *JobInput `xml:"Input,omitempty"` - Operation []*MediaProcessJobOperation `xml:"Operation,omitempty"` - QueueId string `xml:"QueueId,omitempty"` - CallBack string `xml:"CallBack,omitempty"` + XMLName xml.Name `xml:"Request"` + Tag string `xml:"Tag,omitempty"` + Input *JobInput `xml:"Input,omitempty"` + Operation []MediaProcessJobOperation `xml:"Operation,omitempty"` + QueueId string `xml:"QueueId,omitempty"` + CallBack string `xml:"CallBack,omitempty"` } type CreateMultiMediaJobsResult struct { - XMLName xml.Name `xml:"Response"` - JobsDetail []*MediaProcessJobDetail `xml:"JobsDetail,omitempty"` + XMLName xml.Name `xml:"Response"` + JobsDetail []MediaProcessJobDetail `xml:"JobsDetail,omitempty"` } func (s *CIService) CreateMultiMediaJobs(ctx context.Context, opt *CreateMultiMediaJobsOptions) (*CreateMultiMediaJobsResult, *Response, error) { diff --git a/example/CI/media_process/media_process.go b/example/CI/media_process/media_process.go index eac901b..153abfc 100644 --- a/example/CI/media_process/media_process.go +++ b/example/CI/media_process/media_process.go @@ -254,8 +254,8 @@ func InvokeMultiTasks() { Input: &cos.JobInput{ Object: "input/117374C.mp4", }, - Operation: []*cos.MediaProcessJobOperation{ - &cos.MediaProcessJobOperation{ + Operation: []cos.MediaProcessJobOperation{ + cos.MediaProcessJobOperation{ Tag: "Snapshot", Output: &cos.JobOutput{ Region: "ap-chongqing", @@ -268,7 +268,7 @@ func InvokeMultiTasks() { Count: "1", }, }, - &cos.MediaProcessJobOperation{ + cos.MediaProcessJobOperation{ Tag: "Transcode", Output: &cos.JobOutput{ Region: "ap-chongqing",