From fd6c5b95123af0e5fef366cc15cfcdfac14860b2 Mon Sep 17 00:00:00 2001 From: chenhan Date: Thu, 11 Jul 2024 10:31:52 +0800 Subject: [PATCH] fix: ConvertPhotoV2Request field BinaryDataBase64 not set omitempty,cause ImageUrls always disabled --- service/visual/model/model_convert_photov2.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/visual/model/model_convert_photov2.go b/service/visual/model/model_convert_photov2.go index 41ae14c2..0f4a7a8c 100644 --- a/service/visual/model/model_convert_photov2.go +++ b/service/visual/model/model_convert_photov2.go @@ -6,7 +6,7 @@ import "github.com/volcengine/volc-sdk-golang/base" type ConvertPhotoV2Request struct { ReqKey string `json:"req_key"` - BinaryDataBase64 []string `json:"binary_data_base64"` + BinaryDataBase64 []string `json:"binary_data_base64,omitempty"` ImageUrls []string `json:"image_urls"` IsColor bool `json:"is_color"` // Deprecated IfColor int `json:"if_color"`