sdk-team 5 лет назад
Родитель
Сommit
c99e90b98e

+ 3 - 0
CHANGELOG

@@ -1,3 +1,6 @@
+2021-06-16 Version: 1.36.787
+- Encrypt Dialog Content.
+
 2021-06-15 Version: 1.36.786
 - Add ListDevopsProjects.
 

+ 1 - 1
VERSION

@@ -1 +1 @@
-1.36.786
+1.36.787

+ 3 - 3
workorder/include/alibabacloud/workorder/model/ReplyTicketRequest.h

@@ -35,16 +35,16 @@ namespace AlibabaCloud
 				ReplyTicketRequest();
 				~ReplyTicketRequest();
 
-				std::string getSecContent()const;
-				void setSecContent(const std::string& secContent);
 				std::string getContent()const;
 				void setContent(const std::string& content);
+				bool getEncrypt()const;
+				void setEncrypt(bool encrypt);
 				std::string getTicketId()const;
 				void setTicketId(const std::string& ticketId);
 
             private:
-				std::string secContent_;
 				std::string content_;
+				bool encrypt_;
 				std::string ticketId_;
 
 			};

+ 10 - 10
workorder/src/model/ReplyTicketRequest.cc

@@ -27,26 +27,26 @@ ReplyTicketRequest::ReplyTicketRequest() :
 ReplyTicketRequest::~ReplyTicketRequest()
 {}
 
-std::string ReplyTicketRequest::getSecContent()const
+std::string ReplyTicketRequest::getContent()const
 {
-	return secContent_;
+	return content_;
 }
 
-void ReplyTicketRequest::setSecContent(const std::string& secContent)
+void ReplyTicketRequest::setContent(const std::string& content)
 {
-	secContent_ = secContent;
-	setBodyParameter("SecContent", secContent);
+	content_ = content;
+	setBodyParameter("Content", content);
 }
 
-std::string ReplyTicketRequest::getContent()const
+bool ReplyTicketRequest::getEncrypt()const
 {
-	return content_;
+	return encrypt_;
 }
 
-void ReplyTicketRequest::setContent(const std::string& content)
+void ReplyTicketRequest::setEncrypt(bool encrypt)
 {
-	content_ = content;
-	setBodyParameter("Content", content);
+	encrypt_ = encrypt;
+	setBodyParameter("Encrypt", encrypt ? "true" : "false");
 }
 
 std::string ReplyTicketRequest::getTicketId()const