forked from loafle/openapi-generator-original
@@ -5,7 +5,7 @@
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 4.0.1-SNAPSHOT.
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 4.2.0-SNAPSHOT.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
@@ -44,9 +44,9 @@ std::string ApiResponse::toJsonString()
|
||||
{
|
||||
std::stringstream ss;
|
||||
ptree pt;
|
||||
pt.put("Code", m_Code);
|
||||
pt.put("Type", m_Type);
|
||||
pt.put("Message", m_Message);
|
||||
pt.put("code", m_Code);
|
||||
pt.put("type", m_Type);
|
||||
pt.put("message", m_Message);
|
||||
write_json(ss, pt, false);
|
||||
return ss.str();
|
||||
}
|
||||
@@ -56,9 +56,9 @@ void ApiResponse::fromJsonString(std::string const& jsonString)
|
||||
std::stringstream ss(jsonString);
|
||||
ptree pt;
|
||||
read_json(ss,pt);
|
||||
m_Code = pt.get("Code", 0);
|
||||
m_Type = pt.get("Type", "");
|
||||
m_Message = pt.get("Message", "");
|
||||
m_Code = pt.get("code", 0);
|
||||
m_Type = pt.get("type", "");
|
||||
m_Message = pt.get("message", "");
|
||||
}
|
||||
|
||||
int32_t ApiResponse::getCode() const
|
||||
|
||||
Reference in New Issue
Block a user