@@ -267,42 +267,6 @@ CrmClient::QueryCustomerLabelOutcomeCallable CrmClient::queryCustomerLabelCallab
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CrmClient::RemoveIdentityCertifiedForBidUserOutcome CrmClient::removeIdentityCertifiedForBidUser(const RemoveIdentityCertifiedForBidUserRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return RemoveIdentityCertifiedForBidUserOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return RemoveIdentityCertifiedForBidUserOutcome(RemoveIdentityCertifiedForBidUserResult(outcome.result()));
|
||||
else
|
||||
return RemoveIdentityCertifiedForBidUserOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CrmClient::removeIdentityCertifiedForBidUserAsync(const RemoveIdentityCertifiedForBidUserRequest& request, const RemoveIdentityCertifiedForBidUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, removeIdentityCertifiedForBidUser(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CrmClient::RemoveIdentityCertifiedForBidUserOutcomeCallable CrmClient::removeIdentityCertifiedForBidUserCallable(const RemoveIdentityCertifiedForBidUserRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<RemoveIdentityCertifiedForBidUserOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->removeIdentityCertifiedForBidUser(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CrmClient::QueryBidUserCertifiedInfoOutcome CrmClient::queryBidUserCertifiedInfo(const QueryBidUserCertifiedInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -339,42 +303,6 @@ CrmClient::QueryBidUserCertifiedInfoOutcomeCallable CrmClient::queryBidUserCerti
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CrmClient::AddLabelForBidOutcome CrmClient::addLabelForBid(const AddLabelForBidRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return AddLabelForBidOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return AddLabelForBidOutcome(AddLabelForBidResult(outcome.result()));
|
||||
else
|
||||
return AddLabelForBidOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CrmClient::addLabelForBidAsync(const AddLabelForBidRequest& request, const AddLabelForBidAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, addLabelForBid(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CrmClient::AddLabelForBidOutcomeCallable CrmClient::addLabelForBidCallable(const AddLabelForBidRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<AddLabelForBidOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->addLabelForBid(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CrmClient::BatchGetAliyunIdByAliyunPkOutcome CrmClient::batchGetAliyunIdByAliyunPk(const BatchGetAliyunIdByAliyunPkRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -411,6 +339,78 @@ CrmClient::BatchGetAliyunIdByAliyunPkOutcomeCallable CrmClient::batchGetAliyunId
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CrmClient::RemoveIdentityCertifiedForBidUserOutcome CrmClient::removeIdentityCertifiedForBidUser(const RemoveIdentityCertifiedForBidUserRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return RemoveIdentityCertifiedForBidUserOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return RemoveIdentityCertifiedForBidUserOutcome(RemoveIdentityCertifiedForBidUserResult(outcome.result()));
|
||||
else
|
||||
return RemoveIdentityCertifiedForBidUserOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CrmClient::removeIdentityCertifiedForBidUserAsync(const RemoveIdentityCertifiedForBidUserRequest& request, const RemoveIdentityCertifiedForBidUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, removeIdentityCertifiedForBidUser(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CrmClient::RemoveIdentityCertifiedForBidUserOutcomeCallable CrmClient::removeIdentityCertifiedForBidUserCallable(const RemoveIdentityCertifiedForBidUserRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<RemoveIdentityCertifiedForBidUserOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->removeIdentityCertifiedForBidUser(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CrmClient::AddLabelForBidOutcome CrmClient::addLabelForBid(const AddLabelForBidRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return AddLabelForBidOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return AddLabelForBidOutcome(AddLabelForBidResult(outcome.result()));
|
||||
else
|
||||
return AddLabelForBidOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CrmClient::addLabelForBidAsync(const AddLabelForBidRequest& request, const AddLabelForBidAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, addLabelForBid(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CrmClient::AddLabelForBidOutcomeCallable CrmClient::addLabelForBidCallable(const AddLabelForBidRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<AddLabelForBidOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->addLabelForBid(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CrmClient::DeleteLabelOutcome CrmClient::deleteLabel(const DeleteLabelRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string AddIdentityCertifiedForBidUserRequest::getBidType()const
|
||||
void AddIdentityCertifiedForBidUserRequest::setBidType(const std::string& bidType)
|
||||
{
|
||||
bidType_ = bidType;
|
||||
setParameter("BidType", bidType);
|
||||
setCoreParameter("BidType", bidType);
|
||||
}
|
||||
|
||||
std::string AddIdentityCertifiedForBidUserRequest::getLicenseNumber()const
|
||||
@@ -44,7 +44,7 @@ std::string AddIdentityCertifiedForBidUserRequest::getLicenseNumber()const
|
||||
void AddIdentityCertifiedForBidUserRequest::setLicenseNumber(const std::string& licenseNumber)
|
||||
{
|
||||
licenseNumber_ = licenseNumber;
|
||||
setParameter("LicenseNumber", licenseNumber);
|
||||
setCoreParameter("LicenseNumber", licenseNumber);
|
||||
}
|
||||
|
||||
std::string AddIdentityCertifiedForBidUserRequest::getLicenseType()const
|
||||
@@ -55,7 +55,7 @@ std::string AddIdentityCertifiedForBidUserRequest::getLicenseType()const
|
||||
void AddIdentityCertifiedForBidUserRequest::setLicenseType(const std::string& licenseType)
|
||||
{
|
||||
licenseType_ = licenseType;
|
||||
setParameter("LicenseType", licenseType);
|
||||
setCoreParameter("LicenseType", licenseType);
|
||||
}
|
||||
|
||||
std::string AddIdentityCertifiedForBidUserRequest::getPhone()const
|
||||
@@ -66,7 +66,7 @@ std::string AddIdentityCertifiedForBidUserRequest::getPhone()const
|
||||
void AddIdentityCertifiedForBidUserRequest::setPhone(const std::string& phone)
|
||||
{
|
||||
phone_ = phone;
|
||||
setParameter("Phone", phone);
|
||||
setCoreParameter("Phone", phone);
|
||||
}
|
||||
|
||||
std::string AddIdentityCertifiedForBidUserRequest::getName()const
|
||||
@@ -77,7 +77,7 @@ std::string AddIdentityCertifiedForBidUserRequest::getName()const
|
||||
void AddIdentityCertifiedForBidUserRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string AddIdentityCertifiedForBidUserRequest::getPK()const
|
||||
@@ -88,7 +88,7 @@ std::string AddIdentityCertifiedForBidUserRequest::getPK()const
|
||||
void AddIdentityCertifiedForBidUserRequest::setPK(const std::string& pK)
|
||||
{
|
||||
pK_ = pK;
|
||||
setParameter("PK", pK);
|
||||
setCoreParameter("PK", pK);
|
||||
}
|
||||
|
||||
bool AddIdentityCertifiedForBidUserRequest::getIsEnterprise()const
|
||||
@@ -99,6 +99,6 @@ bool AddIdentityCertifiedForBidUserRequest::getIsEnterprise()const
|
||||
void AddIdentityCertifiedForBidUserRequest::setIsEnterprise(bool isEnterprise)
|
||||
{
|
||||
isEnterprise_ = isEnterprise;
|
||||
setParameter("IsEnterprise", std::to_string(isEnterprise));
|
||||
setCoreParameter("IsEnterprise", isEnterprise ? "true" : "false");
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ AddIdentityCertifiedForBidUserResult::~AddIdentityCertifiedForBidUserResult()
|
||||
|
||||
void AddIdentityCertifiedForBidUserResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Result"].isNull())
|
||||
result_ = value["Result"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string AddLabelForBidRequest::getLabelSeries()const
|
||||
void AddLabelForBidRequest::setLabelSeries(const std::string& labelSeries)
|
||||
{
|
||||
labelSeries_ = labelSeries;
|
||||
setParameter("LabelSeries", labelSeries);
|
||||
setCoreParameter("LabelSeries", labelSeries);
|
||||
}
|
||||
|
||||
std::string AddLabelForBidRequest::getEndTime()const
|
||||
@@ -44,7 +44,7 @@ std::string AddLabelForBidRequest::getEndTime()const
|
||||
void AddLabelForBidRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", endTime);
|
||||
setCoreParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string AddLabelForBidRequest::getPK()const
|
||||
@@ -55,7 +55,7 @@ std::string AddLabelForBidRequest::getPK()const
|
||||
void AddLabelForBidRequest::setPK(const std::string& pK)
|
||||
{
|
||||
pK_ = pK;
|
||||
setParameter("PK", pK);
|
||||
setCoreParameter("PK", pK);
|
||||
}
|
||||
|
||||
std::string AddLabelForBidRequest::getLabel()const
|
||||
@@ -66,6 +66,6 @@ std::string AddLabelForBidRequest::getLabel()const
|
||||
void AddLabelForBidRequest::setLabel(const std::string& label)
|
||||
{
|
||||
label_ = label;
|
||||
setParameter("Label", label);
|
||||
setCoreParameter("Label", label);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ AddLabelForBidResult::~AddLabelForBidResult()
|
||||
|
||||
void AddLabelForBidResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Result"].isNull())
|
||||
result_ = value["Result"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string AddLabelRequest::getLabelSeries()const
|
||||
void AddLabelRequest::setLabelSeries(const std::string& labelSeries)
|
||||
{
|
||||
labelSeries_ = labelSeries;
|
||||
setParameter("LabelSeries", labelSeries);
|
||||
setCoreParameter("LabelSeries", labelSeries);
|
||||
}
|
||||
|
||||
std::string AddLabelRequest::getOrganization()const
|
||||
@@ -44,7 +44,7 @@ std::string AddLabelRequest::getOrganization()const
|
||||
void AddLabelRequest::setOrganization(const std::string& organization)
|
||||
{
|
||||
organization_ = organization;
|
||||
setParameter("Organization", organization);
|
||||
setCoreParameter("Organization", organization);
|
||||
}
|
||||
|
||||
std::string AddLabelRequest::getEndTime()const
|
||||
@@ -55,7 +55,7 @@ std::string AddLabelRequest::getEndTime()const
|
||||
void AddLabelRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", endTime);
|
||||
setCoreParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string AddLabelRequest::getPK()const
|
||||
@@ -66,7 +66,7 @@ std::string AddLabelRequest::getPK()const
|
||||
void AddLabelRequest::setPK(const std::string& pK)
|
||||
{
|
||||
pK_ = pK;
|
||||
setParameter("PK", pK);
|
||||
setCoreParameter("PK", pK);
|
||||
}
|
||||
|
||||
std::string AddLabelRequest::getLabelName()const
|
||||
@@ -77,7 +77,7 @@ std::string AddLabelRequest::getLabelName()const
|
||||
void AddLabelRequest::setLabelName(const std::string& labelName)
|
||||
{
|
||||
labelName_ = labelName;
|
||||
setParameter("LabelName", labelName);
|
||||
setCoreParameter("LabelName", labelName);
|
||||
}
|
||||
|
||||
std::string AddLabelRequest::getUserName()const
|
||||
@@ -88,6 +88,6 @@ std::string AddLabelRequest::getUserName()const
|
||||
void AddLabelRequest::setUserName(const std::string& userName)
|
||||
{
|
||||
userName_ = userName;
|
||||
setParameter("UserName", userName);
|
||||
setCoreParameter("UserName", userName);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ AddLabelResult::~AddLabelResult()
|
||||
|
||||
void AddLabelResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Result"].isNull())
|
||||
result_ = value["Result"].asString();
|
||||
|
||||
@@ -34,6 +34,6 @@ void BatchGetAliyunIdByAliyunPkRequest::setPkList(const std::vector<std::string>
|
||||
{
|
||||
pkList_ = pkList;
|
||||
for(int i = 0; i!= pkList.size(); i++)
|
||||
setParameter("PkList."+ std::to_string(i), pkList.at(i));
|
||||
setCoreParameter("PkList."+ std::to_string(i), pkList.at(i));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ BatchGetAliyunIdByAliyunPkResult::~BatchGetAliyunIdByAliyunPkResult()
|
||||
|
||||
void BatchGetAliyunIdByAliyunPkResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allProfileList = value["ProfileList"]["ProfileItem"];
|
||||
for (auto value : allProfileList)
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string CheckLabelForBidRequest::getLabelSeries()const
|
||||
void CheckLabelForBidRequest::setLabelSeries(const std::string& labelSeries)
|
||||
{
|
||||
labelSeries_ = labelSeries;
|
||||
setParameter("LabelSeries", labelSeries);
|
||||
setCoreParameter("LabelSeries", labelSeries);
|
||||
}
|
||||
|
||||
std::string CheckLabelForBidRequest::getPK()const
|
||||
@@ -44,7 +44,7 @@ std::string CheckLabelForBidRequest::getPK()const
|
||||
void CheckLabelForBidRequest::setPK(const std::string& pK)
|
||||
{
|
||||
pK_ = pK;
|
||||
setParameter("PK", pK);
|
||||
setCoreParameter("PK", pK);
|
||||
}
|
||||
|
||||
std::string CheckLabelForBidRequest::getLabel()const
|
||||
@@ -55,6 +55,6 @@ std::string CheckLabelForBidRequest::getLabel()const
|
||||
void CheckLabelForBidRequest::setLabel(const std::string& label)
|
||||
{
|
||||
label_ = label;
|
||||
setParameter("Label", label);
|
||||
setCoreParameter("Label", label);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CheckLabelForBidResult::~CheckLabelForBidResult()
|
||||
|
||||
void CheckLabelForBidResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Result"].isNull())
|
||||
result_ = value["Result"].asString() == "true";
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string CheckLabelRequest::getLabelSeries()const
|
||||
void CheckLabelRequest::setLabelSeries(const std::string& labelSeries)
|
||||
{
|
||||
labelSeries_ = labelSeries;
|
||||
setParameter("LabelSeries", labelSeries);
|
||||
setCoreParameter("LabelSeries", labelSeries);
|
||||
}
|
||||
|
||||
std::string CheckLabelRequest::getPK()const
|
||||
@@ -44,7 +44,7 @@ std::string CheckLabelRequest::getPK()const
|
||||
void CheckLabelRequest::setPK(const std::string& pK)
|
||||
{
|
||||
pK_ = pK;
|
||||
setParameter("PK", pK);
|
||||
setCoreParameter("PK", pK);
|
||||
}
|
||||
|
||||
std::string CheckLabelRequest::getLabelName()const
|
||||
@@ -55,6 +55,6 @@ std::string CheckLabelRequest::getLabelName()const
|
||||
void CheckLabelRequest::setLabelName(const std::string& labelName)
|
||||
{
|
||||
labelName_ = labelName;
|
||||
setParameter("LabelName", labelName);
|
||||
setCoreParameter("LabelName", labelName);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CheckLabelResult::~CheckLabelResult()
|
||||
|
||||
void CheckLabelResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Result"].isNull())
|
||||
result_ = value["Result"].asString() == "true";
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string DeleteLabelForBidRequest::getLabelSeries()const
|
||||
void DeleteLabelForBidRequest::setLabelSeries(const std::string& labelSeries)
|
||||
{
|
||||
labelSeries_ = labelSeries;
|
||||
setParameter("LabelSeries", labelSeries);
|
||||
setCoreParameter("LabelSeries", labelSeries);
|
||||
}
|
||||
|
||||
std::string DeleteLabelForBidRequest::getPK()const
|
||||
@@ -44,7 +44,7 @@ std::string DeleteLabelForBidRequest::getPK()const
|
||||
void DeleteLabelForBidRequest::setPK(const std::string& pK)
|
||||
{
|
||||
pK_ = pK;
|
||||
setParameter("PK", pK);
|
||||
setCoreParameter("PK", pK);
|
||||
}
|
||||
|
||||
std::string DeleteLabelForBidRequest::getLabel()const
|
||||
@@ -55,6 +55,6 @@ std::string DeleteLabelForBidRequest::getLabel()const
|
||||
void DeleteLabelForBidRequest::setLabel(const std::string& label)
|
||||
{
|
||||
label_ = label;
|
||||
setParameter("Label", label);
|
||||
setCoreParameter("Label", label);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DeleteLabelForBidResult::~DeleteLabelForBidResult()
|
||||
|
||||
void DeleteLabelForBidResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Result"].isNull())
|
||||
result_ = value["Result"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string DeleteLabelRequest::getLabelSeries()const
|
||||
void DeleteLabelRequest::setLabelSeries(const std::string& labelSeries)
|
||||
{
|
||||
labelSeries_ = labelSeries;
|
||||
setParameter("LabelSeries", labelSeries);
|
||||
setCoreParameter("LabelSeries", labelSeries);
|
||||
}
|
||||
|
||||
std::string DeleteLabelRequest::getOrganization()const
|
||||
@@ -44,7 +44,7 @@ std::string DeleteLabelRequest::getOrganization()const
|
||||
void DeleteLabelRequest::setOrganization(const std::string& organization)
|
||||
{
|
||||
organization_ = organization;
|
||||
setParameter("Organization", organization);
|
||||
setCoreParameter("Organization", organization);
|
||||
}
|
||||
|
||||
std::string DeleteLabelRequest::getPK()const
|
||||
@@ -55,7 +55,7 @@ std::string DeleteLabelRequest::getPK()const
|
||||
void DeleteLabelRequest::setPK(const std::string& pK)
|
||||
{
|
||||
pK_ = pK;
|
||||
setParameter("PK", pK);
|
||||
setCoreParameter("PK", pK);
|
||||
}
|
||||
|
||||
std::string DeleteLabelRequest::getLabelName()const
|
||||
@@ -66,7 +66,7 @@ std::string DeleteLabelRequest::getLabelName()const
|
||||
void DeleteLabelRequest::setLabelName(const std::string& labelName)
|
||||
{
|
||||
labelName_ = labelName;
|
||||
setParameter("LabelName", labelName);
|
||||
setCoreParameter("LabelName", labelName);
|
||||
}
|
||||
|
||||
std::string DeleteLabelRequest::getUserName()const
|
||||
@@ -77,6 +77,6 @@ std::string DeleteLabelRequest::getUserName()const
|
||||
void DeleteLabelRequest::setUserName(const std::string& userName)
|
||||
{
|
||||
userName_ = userName;
|
||||
setParameter("UserName", userName);
|
||||
setCoreParameter("UserName", userName);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DeleteLabelResult::~DeleteLabelResult()
|
||||
|
||||
void DeleteLabelResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Result"].isNull())
|
||||
result_ = value["Result"].asString();
|
||||
|
||||
@@ -33,6 +33,6 @@ std::string GetAliyunPkByAliyunIdRequest::getAliyunId()const
|
||||
void GetAliyunPkByAliyunIdRequest::setAliyunId(const std::string& aliyunId)
|
||||
{
|
||||
aliyunId_ = aliyunId;
|
||||
setParameter("AliyunId", aliyunId);
|
||||
setCoreParameter("AliyunId", aliyunId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ GetAliyunPkByAliyunIdResult::~GetAliyunPkByAliyunIdResult()
|
||||
|
||||
void GetAliyunPkByAliyunIdResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["AliyunPk"].isNull())
|
||||
aliyunPk_ = value["AliyunPk"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string QueryBidUserCertifiedInfoRequest::getBidType()const
|
||||
void QueryBidUserCertifiedInfoRequest::setBidType(const std::string& bidType)
|
||||
{
|
||||
bidType_ = bidType;
|
||||
setParameter("BidType", bidType);
|
||||
setCoreParameter("BidType", bidType);
|
||||
}
|
||||
|
||||
std::string QueryBidUserCertifiedInfoRequest::getPK()const
|
||||
@@ -44,6 +44,6 @@ std::string QueryBidUserCertifiedInfoRequest::getPK()const
|
||||
void QueryBidUserCertifiedInfoRequest::setPK(const std::string& pK)
|
||||
{
|
||||
pK_ = pK;
|
||||
setParameter("PK", pK);
|
||||
setCoreParameter("PK", pK);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ QueryBidUserCertifiedInfoResult::~QueryBidUserCertifiedInfoResult()
|
||||
|
||||
void QueryBidUserCertifiedInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Result"].isNull())
|
||||
result_ = value["Result"].asString();
|
||||
|
||||
@@ -33,6 +33,6 @@ std::string QueryCustomerLabelRequest::getLabelSeries()const
|
||||
void QueryCustomerLabelRequest::setLabelSeries(const std::string& labelSeries)
|
||||
{
|
||||
labelSeries_ = labelSeries;
|
||||
setParameter("LabelSeries", labelSeries);
|
||||
setCoreParameter("LabelSeries", labelSeries);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ QueryCustomerLabelResult::~QueryCustomerLabelResult()
|
||||
|
||||
void QueryCustomerLabelResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allData = value["Data"]["CustomerLabel"];
|
||||
for (auto value : allData)
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string RemoveIdentityCertifiedForBidUserRequest::getBidType()const
|
||||
void RemoveIdentityCertifiedForBidUserRequest::setBidType(const std::string& bidType)
|
||||
{
|
||||
bidType_ = bidType;
|
||||
setParameter("BidType", bidType);
|
||||
setCoreParameter("BidType", bidType);
|
||||
}
|
||||
|
||||
std::string RemoveIdentityCertifiedForBidUserRequest::getPK()const
|
||||
@@ -44,6 +44,6 @@ std::string RemoveIdentityCertifiedForBidUserRequest::getPK()const
|
||||
void RemoveIdentityCertifiedForBidUserRequest::setPK(const std::string& pK)
|
||||
{
|
||||
pK_ = pK;
|
||||
setParameter("PK", pK);
|
||||
setCoreParameter("PK", pK);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ RemoveIdentityCertifiedForBidUserResult::~RemoveIdentityCertifiedForBidUserResul
|
||||
|
||||
void RemoveIdentityCertifiedForBidUserResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Result"].isNull())
|
||||
result_ = value["Result"].asString();
|
||||
|
||||
Reference in New Issue
Block a user