From 30d48e62e366373474715b234085a0daf88a2da0 Mon Sep 17 00:00:00 2001 From: want-fly <36727480+want-fly@users.noreply.github.com> Date: Thu, 17 Mar 2022 09:56:47 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=94=E5=9B=9E=E5=8F=82=E6=95=B0=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E7=B1=BB=E5=9E=8B=E5=AE=9A=E4=B9=89=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 你这个指向切片的指针干啥没搞懂 我获取到这个指针没法遍历了。不应该是切片里面放的结构体指针么 --- services/vod/v1/model/model_upload_meta_data_by_url_response.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/vod/v1/model/model_upload_meta_data_by_url_response.go b/services/vod/v1/model/model_upload_meta_data_by_url_response.go index 40ebdb67c0..5bae156965 100644 --- a/services/vod/v1/model/model_upload_meta_data_by_url_response.go +++ b/services/vod/v1/model/model_upload_meta_data_by_url_response.go @@ -10,7 +10,7 @@ import ( type UploadMetaDataByUrlResponse struct { // 待拉取创建的媒资元数据 - UploadAssets *[]UploadAsset `json:"upload_assets,omitempty"` + UploadAssets []*UploadAsset `json:"upload_assets,omitempty"` HttpStatusCode int `json:"-"` }