Просмотр исходного кода

由廷诚发起的CLOUDPHOTO SDK自动发布, 版本号:1.3.7

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
haowei.yao 8 лет назад
Родитель
Сommit
9c389f5683

+ 3 - 0
CHANGELOG

@@ -1,3 +1,6 @@
+2018-03-29 Version: 1.3.7
+1, edit FetchLibraries return param format
+
 2018-03-27 Version: 1.3.6
 1, Rename QueryCustomerSaleInfo to RegionName.
 

+ 1 - 1
VERSION

@@ -1 +1 @@
-1.3.6
+1.3.7

+ 6 - 2
cloudphoto/include/alibabacloud/cloudphoto/model/FetchLibrariesResult.h

@@ -32,6 +32,10 @@ namespace AlibabaCloud
 			class ALIBABACLOUD_CLOUDPHOTO_EXPORT FetchLibrariesResult : public ServiceResult
 			{
 			public:
+				struct Library
+				{
+					std::string libraryId;
+				};
 
 
 				FetchLibrariesResult();
@@ -40,7 +44,7 @@ namespace AlibabaCloud
 				int getTotalCount()const;
 				std::string getAction()const;
 				std::string getMessage()const;
-				std::vector<std::string> getLibrary()const;
+				std::vector<Library> getLibraries()const;
 				std::string getCode()const;
 
 			protected:
@@ -49,7 +53,7 @@ namespace AlibabaCloud
 				int totalCount_;
 				std::string action_;
 				std::string message_;
-				std::vector<std::string> library_;
+				std::vector<Library> libraries_;
 				std::string code_;
 
 			};

+ 10 - 5
cloudphoto/src/model/FetchLibrariesResult.cc

@@ -40,9 +40,14 @@ void FetchLibrariesResult::parse(const std::string &payload)
 	reader.parse(payload, value);
 
 	setRequestId(value["RequestId"].asString());
-	auto allLibrary = value["Library"]["Library"];
-	for (const auto &item : allLibrary)
-		library_.push_back(item.asString());
+	auto allLibraries = value["Libraries"]["Library"];
+	for (auto value : allLibraries)
+	{
+		Library librariesObject;
+		if(!value["LibraryId"].isNull())
+			librariesObject.libraryId = value["LibraryId"].asString();
+		libraries_.push_back(librariesObject);
+	}
 	if(!value["Code"].isNull())
 		code_ = value["Code"].asString();
 	if(!value["Message"].isNull())
@@ -69,9 +74,9 @@ std::string FetchLibrariesResult::getMessage()const
 	return message_;
 }
 
-std::vector<std::string> FetchLibrariesResult::getLibrary()const
+std::vector<FetchLibrariesResult::Library> FetchLibrariesResult::getLibraries()const
 {
-	return library_;
+	return libraries_;
 }
 
 std::string FetchLibrariesResult::getCode()const