From 54fa46a83631caba6570d9276fe287ea4420d6bf Mon Sep 17 00:00:00 2001 From: wanjiewu Date: Thu, 9 Sep 2021 20:18:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=B0=83=E6=95=B4=E6=8C=87=E9=92=88?= =?UTF-8?q?=E6=95=B0=E7=BB=84=E4=B8=BA=E5=AE=9E=E4=BE=8B=E5=8D=81=E8=B6=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ci_media.go | 16 ++++++++-------- example/CI/media_process/media_process.go | 6 +++--- 2 files changed, 11 insertions(+), 11 deletions(-) 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",