Fixed ListUsers, GetUser, EnableUser, RegisterUser, DisableUser, DeleteUser API parameter of uid data type error, from number into string.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2021-01-14 Version: patch
|
||||||
|
- Fixed ListUsers, GetUser, EnableUser, RegisterUser, DisableUser, DeleteUser API parameter of uid data type error, from number into string.
|
||||||
|
- Supported ListInstances, GetInstance API to return Owner information.
|
||||||
|
- Supported SetOwners API to set INSTANCE owner.
|
||||||
|
|
||||||
2021-01-14 Version: patch
|
2021-01-14 Version: patch
|
||||||
- Create Lindorm Open api.
|
- Create Lindorm Open api.
|
||||||
|
|
||||||
|
|||||||
@@ -23,8 +23,6 @@ set(dms-enterprise_public_header
|
|||||||
set(dms-enterprise_public_header_model
|
set(dms-enterprise_public_header_model
|
||||||
include/alibabacloud/dms-enterprise/model/ApproveOrderRequest.h
|
include/alibabacloud/dms-enterprise/model/ApproveOrderRequest.h
|
||||||
include/alibabacloud/dms-enterprise/model/ApproveOrderResult.h
|
include/alibabacloud/dms-enterprise/model/ApproveOrderResult.h
|
||||||
include/alibabacloud/dms-enterprise/model/CheckFinishMissionRequest.h
|
|
||||||
include/alibabacloud/dms-enterprise/model/CheckFinishMissionResult.h
|
|
||||||
include/alibabacloud/dms-enterprise/model/CloseOrderRequest.h
|
include/alibabacloud/dms-enterprise/model/CloseOrderRequest.h
|
||||||
include/alibabacloud/dms-enterprise/model/CloseOrderResult.h
|
include/alibabacloud/dms-enterprise/model/CloseOrderResult.h
|
||||||
include/alibabacloud/dms-enterprise/model/CreateOrderRequest.h
|
include/alibabacloud/dms-enterprise/model/CreateOrderRequest.h
|
||||||
@@ -136,8 +134,6 @@ set(dms-enterprise_src
|
|||||||
src/Dms-enterpriseClient.cc
|
src/Dms-enterpriseClient.cc
|
||||||
src/model/ApproveOrderRequest.cc
|
src/model/ApproveOrderRequest.cc
|
||||||
src/model/ApproveOrderResult.cc
|
src/model/ApproveOrderResult.cc
|
||||||
src/model/CheckFinishMissionRequest.cc
|
|
||||||
src/model/CheckFinishMissionResult.cc
|
|
||||||
src/model/CloseOrderRequest.cc
|
src/model/CloseOrderRequest.cc
|
||||||
src/model/CloseOrderResult.cc
|
src/model/CloseOrderResult.cc
|
||||||
src/model/CreateOrderRequest.cc
|
src/model/CreateOrderRequest.cc
|
||||||
|
|||||||
@@ -24,8 +24,6 @@
|
|||||||
#include "Dms_enterpriseExport.h"
|
#include "Dms_enterpriseExport.h"
|
||||||
#include "model/ApproveOrderRequest.h"
|
#include "model/ApproveOrderRequest.h"
|
||||||
#include "model/ApproveOrderResult.h"
|
#include "model/ApproveOrderResult.h"
|
||||||
#include "model/CheckFinishMissionRequest.h"
|
|
||||||
#include "model/CheckFinishMissionResult.h"
|
|
||||||
#include "model/CloseOrderRequest.h"
|
#include "model/CloseOrderRequest.h"
|
||||||
#include "model/CloseOrderResult.h"
|
#include "model/CloseOrderResult.h"
|
||||||
#include "model/CreateOrderRequest.h"
|
#include "model/CreateOrderRequest.h"
|
||||||
@@ -144,9 +142,6 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::ApproveOrderResult> ApproveOrderOutcome;
|
typedef Outcome<Error, Model::ApproveOrderResult> ApproveOrderOutcome;
|
||||||
typedef std::future<ApproveOrderOutcome> ApproveOrderOutcomeCallable;
|
typedef std::future<ApproveOrderOutcome> ApproveOrderOutcomeCallable;
|
||||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::ApproveOrderRequest&, const ApproveOrderOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ApproveOrderAsyncHandler;
|
typedef std::function<void(const Dms_enterpriseClient*, const Model::ApproveOrderRequest&, const ApproveOrderOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ApproveOrderAsyncHandler;
|
||||||
typedef Outcome<Error, Model::CheckFinishMissionResult> CheckFinishMissionOutcome;
|
|
||||||
typedef std::future<CheckFinishMissionOutcome> CheckFinishMissionOutcomeCallable;
|
|
||||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::CheckFinishMissionRequest&, const CheckFinishMissionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CheckFinishMissionAsyncHandler;
|
|
||||||
typedef Outcome<Error, Model::CloseOrderResult> CloseOrderOutcome;
|
typedef Outcome<Error, Model::CloseOrderResult> CloseOrderOutcome;
|
||||||
typedef std::future<CloseOrderOutcome> CloseOrderOutcomeCallable;
|
typedef std::future<CloseOrderOutcome> CloseOrderOutcomeCallable;
|
||||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::CloseOrderRequest&, const CloseOrderOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CloseOrderAsyncHandler;
|
typedef std::function<void(const Dms_enterpriseClient*, const Model::CloseOrderRequest&, const CloseOrderOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CloseOrderAsyncHandler;
|
||||||
@@ -314,9 +309,6 @@ namespace AlibabaCloud
|
|||||||
ApproveOrderOutcome approveOrder(const Model::ApproveOrderRequest &request)const;
|
ApproveOrderOutcome approveOrder(const Model::ApproveOrderRequest &request)const;
|
||||||
void approveOrderAsync(const Model::ApproveOrderRequest& request, const ApproveOrderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void approveOrderAsync(const Model::ApproveOrderRequest& request, const ApproveOrderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
ApproveOrderOutcomeCallable approveOrderCallable(const Model::ApproveOrderRequest& request) const;
|
ApproveOrderOutcomeCallable approveOrderCallable(const Model::ApproveOrderRequest& request) const;
|
||||||
CheckFinishMissionOutcome checkFinishMission(const Model::CheckFinishMissionRequest &request)const;
|
|
||||||
void checkFinishMissionAsync(const Model::CheckFinishMissionRequest& request, const CheckFinishMissionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
||||||
CheckFinishMissionOutcomeCallable checkFinishMissionCallable(const Model::CheckFinishMissionRequest& request) const;
|
|
||||||
CloseOrderOutcome closeOrder(const Model::CloseOrderRequest &request)const;
|
CloseOrderOutcome closeOrder(const Model::CloseOrderRequest &request)const;
|
||||||
void closeOrderAsync(const Model::CloseOrderRequest& request, const CloseOrderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void closeOrderAsync(const Model::CloseOrderRequest& request, const CloseOrderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
CloseOrderOutcomeCallable closeOrderCallable(const Model::CloseOrderRequest& request) const;
|
CloseOrderOutcomeCallable closeOrderCallable(const Model::CloseOrderRequest& request) const;
|
||||||
|
|||||||
@@ -1,48 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CHECKFINISHMISSIONREQUEST_H_
|
|
||||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CHECKFINISHMISSIONREQUEST_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
|
||||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
|
||||||
namespace Dms_enterprise
|
|
||||||
{
|
|
||||||
namespace Model
|
|
||||||
{
|
|
||||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT CheckFinishMissionRequest : public RpcServiceRequest
|
|
||||||
{
|
|
||||||
|
|
||||||
public:
|
|
||||||
CheckFinishMissionRequest();
|
|
||||||
~CheckFinishMissionRequest();
|
|
||||||
|
|
||||||
std::string getMissionType()const;
|
|
||||||
void setMissionType(const std::string& missionType);
|
|
||||||
|
|
||||||
private:
|
|
||||||
std::string missionType_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CHECKFINISHMISSIONREQUEST_H_
|
|
||||||
@@ -1,57 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CHECKFINISHMISSIONRESULT_H_
|
|
||||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CHECKFINISHMISSIONRESULT_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <utility>
|
|
||||||
#include <alibabacloud/core/ServiceResult.h>
|
|
||||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
|
||||||
namespace Dms_enterprise
|
|
||||||
{
|
|
||||||
namespace Model
|
|
||||||
{
|
|
||||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT CheckFinishMissionResult : public ServiceResult
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
|
|
||||||
|
|
||||||
CheckFinishMissionResult();
|
|
||||||
explicit CheckFinishMissionResult(const std::string &payload);
|
|
||||||
~CheckFinishMissionResult();
|
|
||||||
bool getHasFinish()const;
|
|
||||||
std::string getErrorCode()const;
|
|
||||||
std::string getErrorMessage()const;
|
|
||||||
bool getSuccess()const;
|
|
||||||
|
|
||||||
protected:
|
|
||||||
void parse(const std::string &payload);
|
|
||||||
private:
|
|
||||||
bool hasFinish_;
|
|
||||||
std::string errorCode_;
|
|
||||||
std::string errorMessage_;
|
|
||||||
bool success_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CHECKFINISHMISSIONRESULT_H_
|
|
||||||
@@ -35,20 +35,20 @@ namespace AlibabaCloud
|
|||||||
DeleteInstanceRequest();
|
DeleteInstanceRequest();
|
||||||
~DeleteInstanceRequest();
|
~DeleteInstanceRequest();
|
||||||
|
|
||||||
int getPort()const;
|
|
||||||
void setPort(int port);
|
|
||||||
std::string getHost()const;
|
|
||||||
void setHost(const std::string& host);
|
|
||||||
long getTid()const;
|
long getTid()const;
|
||||||
void setTid(long tid);
|
void setTid(long tid);
|
||||||
std::string getSid()const;
|
std::string getSid()const;
|
||||||
void setSid(const std::string& sid);
|
void setSid(const std::string& sid);
|
||||||
|
int getPort()const;
|
||||||
|
void setPort(int port);
|
||||||
|
std::string getHost()const;
|
||||||
|
void setHost(const std::string& host);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
int port_;
|
|
||||||
std::string host_;
|
|
||||||
long tid_;
|
long tid_;
|
||||||
std::string sid_;
|
std::string sid_;
|
||||||
|
int port_;
|
||||||
|
std::string host_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,13 +35,13 @@ namespace AlibabaCloud
|
|||||||
DeleteUserRequest();
|
DeleteUserRequest();
|
||||||
~DeleteUserRequest();
|
~DeleteUserRequest();
|
||||||
|
|
||||||
long getUid()const;
|
std::string getUid()const;
|
||||||
void setUid(long uid);
|
void setUid(const std::string& uid);
|
||||||
long getTid()const;
|
long getTid()const;
|
||||||
void setTid(long tid);
|
void setTid(long tid);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
long uid_;
|
std::string uid_;
|
||||||
long tid_;
|
long tid_;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -35,13 +35,13 @@ namespace AlibabaCloud
|
|||||||
DisableUserRequest();
|
DisableUserRequest();
|
||||||
~DisableUserRequest();
|
~DisableUserRequest();
|
||||||
|
|
||||||
long getUid()const;
|
std::string getUid()const;
|
||||||
void setUid(long uid);
|
void setUid(const std::string& uid);
|
||||||
long getTid()const;
|
long getTid()const;
|
||||||
void setTid(long tid);
|
void setTid(long tid);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
long uid_;
|
std::string uid_;
|
||||||
long tid_;
|
long tid_;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -35,13 +35,13 @@ namespace AlibabaCloud
|
|||||||
EnableUserRequest();
|
EnableUserRequest();
|
||||||
~EnableUserRequest();
|
~EnableUserRequest();
|
||||||
|
|
||||||
long getUid()const;
|
std::string getUid()const;
|
||||||
void setUid(long uid);
|
void setUid(const std::string& uid);
|
||||||
long getTid()const;
|
long getTid()const;
|
||||||
void setTid(long tid);
|
void setTid(long tid);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
long uid_;
|
std::string uid_;
|
||||||
long tid_;
|
long tid_;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -35,20 +35,20 @@ namespace AlibabaCloud
|
|||||||
GetInstanceRequest();
|
GetInstanceRequest();
|
||||||
~GetInstanceRequest();
|
~GetInstanceRequest();
|
||||||
|
|
||||||
int getPort()const;
|
|
||||||
void setPort(int port);
|
|
||||||
std::string getHost()const;
|
|
||||||
void setHost(const std::string& host);
|
|
||||||
long getTid()const;
|
long getTid()const;
|
||||||
void setTid(long tid);
|
void setTid(long tid);
|
||||||
std::string getSid()const;
|
std::string getSid()const;
|
||||||
void setSid(const std::string& sid);
|
void setSid(const std::string& sid);
|
||||||
|
int getPort()const;
|
||||||
|
void setPort(int port);
|
||||||
|
std::string getHost()const;
|
||||||
|
void setHost(const std::string& host);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
int port_;
|
|
||||||
std::string host_;
|
|
||||||
long tid_;
|
long tid_;
|
||||||
std::string sid_;
|
std::string sid_;
|
||||||
|
int port_;
|
||||||
|
std::string host_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -51,10 +51,12 @@ namespace AlibabaCloud
|
|||||||
std::string state;
|
std::string state;
|
||||||
std::string ecsRegion;
|
std::string ecsRegion;
|
||||||
std::string databaseUser;
|
std::string databaseUser;
|
||||||
|
std::vector<std::string> ownerNameList;
|
||||||
std::string instanceType;
|
std::string instanceType;
|
||||||
std::string dbaNickName;
|
std::string dbaNickName;
|
||||||
std::string dataLinkName;
|
std::string dataLinkName;
|
||||||
int queryTimeout;
|
int queryTimeout;
|
||||||
|
std::vector<std::string> ownerIdList;
|
||||||
std::string safeRuleId;
|
std::string safeRuleId;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -35,17 +35,17 @@ namespace AlibabaCloud
|
|||||||
GetUserRequest();
|
GetUserRequest();
|
||||||
~GetUserRequest();
|
~GetUserRequest();
|
||||||
|
|
||||||
long getUid()const;
|
|
||||||
void setUid(long uid);
|
|
||||||
std::string getUserId()const;
|
std::string getUserId()const;
|
||||||
void setUserId(const std::string& userId);
|
void setUserId(const std::string& userId);
|
||||||
long getTid()const;
|
long getTid()const;
|
||||||
void setTid(long tid);
|
void setTid(long tid);
|
||||||
|
std::string getUid()const;
|
||||||
|
void setUid(const std::string& uid);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
long uid_;
|
|
||||||
std::string userId_;
|
std::string userId_;
|
||||||
long tid_;
|
long tid_;
|
||||||
|
std::string uid_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ namespace AlibabaCloud
|
|||||||
std::string nickName;
|
std::string nickName;
|
||||||
std::string mobile;
|
std::string mobile;
|
||||||
long maxExecuteCount;
|
long maxExecuteCount;
|
||||||
long uid;
|
std::string uid;
|
||||||
std::string lastLoginTime;
|
std::string lastLoginTime;
|
||||||
long curResultCount;
|
long curResultCount;
|
||||||
std::vector<std::string> roleIdList;
|
std::vector<std::string> roleIdList;
|
||||||
|
|||||||
@@ -51,10 +51,12 @@ namespace AlibabaCloud
|
|||||||
std::string state;
|
std::string state;
|
||||||
std::string ecsRegion;
|
std::string ecsRegion;
|
||||||
std::string databaseUser;
|
std::string databaseUser;
|
||||||
|
std::vector<std::string> ownerNameList;
|
||||||
std::string instanceType;
|
std::string instanceType;
|
||||||
std::string dbaNickName;
|
std::string dbaNickName;
|
||||||
std::string dataLinkName;
|
std::string dataLinkName;
|
||||||
int queryTimeout;
|
int queryTimeout;
|
||||||
|
std::vector<std::string> ownerIdList;
|
||||||
std::string safeRuleId;
|
std::string safeRuleId;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -35,26 +35,26 @@ namespace AlibabaCloud
|
|||||||
ListUsersRequest();
|
ListUsersRequest();
|
||||||
~ListUsersRequest();
|
~ListUsersRequest();
|
||||||
|
|
||||||
std::string getUserState()const;
|
|
||||||
void setUserState(const std::string& userState);
|
|
||||||
std::string getRole()const;
|
std::string getRole()const;
|
||||||
void setRole(const std::string& role);
|
void setRole(const std::string& role);
|
||||||
int getPageSize()const;
|
|
||||||
void setPageSize(int pageSize);
|
|
||||||
std::string getSearchKey()const;
|
std::string getSearchKey()const;
|
||||||
void setSearchKey(const std::string& searchKey);
|
void setSearchKey(const std::string& searchKey);
|
||||||
long getTid()const;
|
long getTid()const;
|
||||||
void setTid(long tid);
|
void setTid(long tid);
|
||||||
int getPageNumber()const;
|
int getPageNumber()const;
|
||||||
void setPageNumber(int pageNumber);
|
void setPageNumber(int pageNumber);
|
||||||
|
std::string getUserState()const;
|
||||||
|
void setUserState(const std::string& userState);
|
||||||
|
int getPageSize()const;
|
||||||
|
void setPageSize(int pageSize);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string userState_;
|
|
||||||
std::string role_;
|
std::string role_;
|
||||||
int pageSize_;
|
|
||||||
std::string searchKey_;
|
std::string searchKey_;
|
||||||
long tid_;
|
long tid_;
|
||||||
int pageNumber_;
|
int pageNumber_;
|
||||||
|
std::string userState_;
|
||||||
|
int pageSize_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ namespace AlibabaCloud
|
|||||||
std::string nickName;
|
std::string nickName;
|
||||||
std::string mobile;
|
std::string mobile;
|
||||||
long maxExecuteCount;
|
long maxExecuteCount;
|
||||||
long uid;
|
std::string uid;
|
||||||
std::string lastLoginTime;
|
std::string lastLoginTime;
|
||||||
long curResultCount;
|
long curResultCount;
|
||||||
std::vector<std::string> roleIdList;
|
std::vector<std::string> roleIdList;
|
||||||
@@ -46,7 +46,7 @@ namespace AlibabaCloud
|
|||||||
std::string userId;
|
std::string userId;
|
||||||
std::string state;
|
std::string state;
|
||||||
long curExecuteCount;
|
long curExecuteCount;
|
||||||
long parentUid;
|
std::string parentUid;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -37,21 +37,21 @@ namespace AlibabaCloud
|
|||||||
|
|
||||||
std::string getRoleNames()const;
|
std::string getRoleNames()const;
|
||||||
void setRoleNames(const std::string& roleNames);
|
void setRoleNames(const std::string& roleNames);
|
||||||
long getUid()const;
|
|
||||||
void setUid(long uid);
|
|
||||||
std::string getUserNick()const;
|
std::string getUserNick()const;
|
||||||
void setUserNick(const std::string& userNick);
|
void setUserNick(const std::string& userNick);
|
||||||
std::string getMobile()const;
|
std::string getMobile()const;
|
||||||
void setMobile(const std::string& mobile);
|
void setMobile(const std::string& mobile);
|
||||||
long getTid()const;
|
long getTid()const;
|
||||||
void setTid(long tid);
|
void setTid(long tid);
|
||||||
|
std::string getUid()const;
|
||||||
|
void setUid(const std::string& uid);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string roleNames_;
|
std::string roleNames_;
|
||||||
long uid_;
|
|
||||||
std::string userNick_;
|
std::string userNick_;
|
||||||
std::string mobile_;
|
std::string mobile_;
|
||||||
long tid_;
|
long tid_;
|
||||||
|
std::string uid_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -87,42 +87,6 @@ Dms_enterpriseClient::ApproveOrderOutcomeCallable Dms_enterpriseClient::approveO
|
|||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
Dms_enterpriseClient::CheckFinishMissionOutcome Dms_enterpriseClient::checkFinishMission(const CheckFinishMissionRequest &request) const
|
|
||||||
{
|
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
|
||||||
if (!endpointOutcome.isSuccess())
|
|
||||||
return CheckFinishMissionOutcome(endpointOutcome.error());
|
|
||||||
|
|
||||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
|
||||||
|
|
||||||
if (outcome.isSuccess())
|
|
||||||
return CheckFinishMissionOutcome(CheckFinishMissionResult(outcome.result()));
|
|
||||||
else
|
|
||||||
return CheckFinishMissionOutcome(outcome.error());
|
|
||||||
}
|
|
||||||
|
|
||||||
void Dms_enterpriseClient::checkFinishMissionAsync(const CheckFinishMissionRequest& request, const CheckFinishMissionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
|
||||||
{
|
|
||||||
auto fn = [this, request, handler, context]()
|
|
||||||
{
|
|
||||||
handler(this, request, checkFinishMission(request), context);
|
|
||||||
};
|
|
||||||
|
|
||||||
asyncExecute(new Runnable(fn));
|
|
||||||
}
|
|
||||||
|
|
||||||
Dms_enterpriseClient::CheckFinishMissionOutcomeCallable Dms_enterpriseClient::checkFinishMissionCallable(const CheckFinishMissionRequest &request) const
|
|
||||||
{
|
|
||||||
auto task = std::make_shared<std::packaged_task<CheckFinishMissionOutcome()>>(
|
|
||||||
[this, request]()
|
|
||||||
{
|
|
||||||
return this->checkFinishMission(request);
|
|
||||||
});
|
|
||||||
|
|
||||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
|
||||||
return task->get_future();
|
|
||||||
}
|
|
||||||
|
|
||||||
Dms_enterpriseClient::CloseOrderOutcome Dms_enterpriseClient::closeOrder(const CloseOrderRequest &request) const
|
Dms_enterpriseClient::CloseOrderOutcome Dms_enterpriseClient::closeOrder(const CloseOrderRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
|||||||
@@ -1,40 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <alibabacloud/dms-enterprise/model/CheckFinishMissionRequest.h>
|
|
||||||
|
|
||||||
using AlibabaCloud::Dms_enterprise::Model::CheckFinishMissionRequest;
|
|
||||||
|
|
||||||
CheckFinishMissionRequest::CheckFinishMissionRequest() :
|
|
||||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "CheckFinishMission")
|
|
||||||
{
|
|
||||||
setMethod(HttpRequest::Method::Get);
|
|
||||||
}
|
|
||||||
|
|
||||||
CheckFinishMissionRequest::~CheckFinishMissionRequest()
|
|
||||||
{}
|
|
||||||
|
|
||||||
std::string CheckFinishMissionRequest::getMissionType()const
|
|
||||||
{
|
|
||||||
return missionType_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void CheckFinishMissionRequest::setMissionType(const std::string& missionType)
|
|
||||||
{
|
|
||||||
missionType_ = missionType;
|
|
||||||
setParameter("MissionType", missionType);
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,72 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <alibabacloud/dms-enterprise/model/CheckFinishMissionResult.h>
|
|
||||||
#include <json/json.h>
|
|
||||||
|
|
||||||
using namespace AlibabaCloud::Dms_enterprise;
|
|
||||||
using namespace AlibabaCloud::Dms_enterprise::Model;
|
|
||||||
|
|
||||||
CheckFinishMissionResult::CheckFinishMissionResult() :
|
|
||||||
ServiceResult()
|
|
||||||
{}
|
|
||||||
|
|
||||||
CheckFinishMissionResult::CheckFinishMissionResult(const std::string &payload) :
|
|
||||||
ServiceResult()
|
|
||||||
{
|
|
||||||
parse(payload);
|
|
||||||
}
|
|
||||||
|
|
||||||
CheckFinishMissionResult::~CheckFinishMissionResult()
|
|
||||||
{}
|
|
||||||
|
|
||||||
void CheckFinishMissionResult::parse(const std::string &payload)
|
|
||||||
{
|
|
||||||
Json::Reader reader;
|
|
||||||
Json::Value value;
|
|
||||||
reader.parse(payload, value);
|
|
||||||
setRequestId(value["RequestId"].asString());
|
|
||||||
if(!value["Success"].isNull())
|
|
||||||
success_ = value["Success"].asString() == "true";
|
|
||||||
if(!value["ErrorMessage"].isNull())
|
|
||||||
errorMessage_ = value["ErrorMessage"].asString();
|
|
||||||
if(!value["ErrorCode"].isNull())
|
|
||||||
errorCode_ = value["ErrorCode"].asString();
|
|
||||||
if(!value["HasFinish"].isNull())
|
|
||||||
hasFinish_ = value["HasFinish"].asString() == "true";
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
bool CheckFinishMissionResult::getHasFinish()const
|
|
||||||
{
|
|
||||||
return hasFinish_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string CheckFinishMissionResult::getErrorCode()const
|
|
||||||
{
|
|
||||||
return errorCode_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string CheckFinishMissionResult::getErrorMessage()const
|
|
||||||
{
|
|
||||||
return errorMessage_;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool CheckFinishMissionResult::getSuccess()const
|
|
||||||
{
|
|
||||||
return success_;
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -27,28 +27,6 @@ DeleteInstanceRequest::DeleteInstanceRequest() :
|
|||||||
DeleteInstanceRequest::~DeleteInstanceRequest()
|
DeleteInstanceRequest::~DeleteInstanceRequest()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
int DeleteInstanceRequest::getPort()const
|
|
||||||
{
|
|
||||||
return port_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void DeleteInstanceRequest::setPort(int port)
|
|
||||||
{
|
|
||||||
port_ = port;
|
|
||||||
setParameter("Port", std::to_string(port));
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string DeleteInstanceRequest::getHost()const
|
|
||||||
{
|
|
||||||
return host_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void DeleteInstanceRequest::setHost(const std::string& host)
|
|
||||||
{
|
|
||||||
host_ = host;
|
|
||||||
setParameter("Host", host);
|
|
||||||
}
|
|
||||||
|
|
||||||
long DeleteInstanceRequest::getTid()const
|
long DeleteInstanceRequest::getTid()const
|
||||||
{
|
{
|
||||||
return tid_;
|
return tid_;
|
||||||
@@ -71,3 +49,25 @@ void DeleteInstanceRequest::setSid(const std::string& sid)
|
|||||||
setParameter("Sid", sid);
|
setParameter("Sid", sid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int DeleteInstanceRequest::getPort()const
|
||||||
|
{
|
||||||
|
return port_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DeleteInstanceRequest::setPort(int port)
|
||||||
|
{
|
||||||
|
port_ = port;
|
||||||
|
setParameter("Port", std::to_string(port));
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string DeleteInstanceRequest::getHost()const
|
||||||
|
{
|
||||||
|
return host_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DeleteInstanceRequest::setHost(const std::string& host)
|
||||||
|
{
|
||||||
|
host_ = host;
|
||||||
|
setParameter("Host", host);
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -27,15 +27,15 @@ DeleteUserRequest::DeleteUserRequest() :
|
|||||||
DeleteUserRequest::~DeleteUserRequest()
|
DeleteUserRequest::~DeleteUserRequest()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
long DeleteUserRequest::getUid()const
|
std::string DeleteUserRequest::getUid()const
|
||||||
{
|
{
|
||||||
return uid_;
|
return uid_;
|
||||||
}
|
}
|
||||||
|
|
||||||
void DeleteUserRequest::setUid(long uid)
|
void DeleteUserRequest::setUid(const std::string& uid)
|
||||||
{
|
{
|
||||||
uid_ = uid;
|
uid_ = uid;
|
||||||
setParameter("Uid", std::to_string(uid));
|
setParameter("Uid", uid);
|
||||||
}
|
}
|
||||||
|
|
||||||
long DeleteUserRequest::getTid()const
|
long DeleteUserRequest::getTid()const
|
||||||
|
|||||||
@@ -27,15 +27,15 @@ DisableUserRequest::DisableUserRequest() :
|
|||||||
DisableUserRequest::~DisableUserRequest()
|
DisableUserRequest::~DisableUserRequest()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
long DisableUserRequest::getUid()const
|
std::string DisableUserRequest::getUid()const
|
||||||
{
|
{
|
||||||
return uid_;
|
return uid_;
|
||||||
}
|
}
|
||||||
|
|
||||||
void DisableUserRequest::setUid(long uid)
|
void DisableUserRequest::setUid(const std::string& uid)
|
||||||
{
|
{
|
||||||
uid_ = uid;
|
uid_ = uid;
|
||||||
setParameter("Uid", std::to_string(uid));
|
setParameter("Uid", uid);
|
||||||
}
|
}
|
||||||
|
|
||||||
long DisableUserRequest::getTid()const
|
long DisableUserRequest::getTid()const
|
||||||
|
|||||||
@@ -27,15 +27,15 @@ EnableUserRequest::EnableUserRequest() :
|
|||||||
EnableUserRequest::~EnableUserRequest()
|
EnableUserRequest::~EnableUserRequest()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
long EnableUserRequest::getUid()const
|
std::string EnableUserRequest::getUid()const
|
||||||
{
|
{
|
||||||
return uid_;
|
return uid_;
|
||||||
}
|
}
|
||||||
|
|
||||||
void EnableUserRequest::setUid(long uid)
|
void EnableUserRequest::setUid(const std::string& uid)
|
||||||
{
|
{
|
||||||
uid_ = uid;
|
uid_ = uid;
|
||||||
setParameter("Uid", std::to_string(uid));
|
setParameter("Uid", uid);
|
||||||
}
|
}
|
||||||
|
|
||||||
long EnableUserRequest::getTid()const
|
long EnableUserRequest::getTid()const
|
||||||
|
|||||||
@@ -27,28 +27,6 @@ GetInstanceRequest::GetInstanceRequest() :
|
|||||||
GetInstanceRequest::~GetInstanceRequest()
|
GetInstanceRequest::~GetInstanceRequest()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
int GetInstanceRequest::getPort()const
|
|
||||||
{
|
|
||||||
return port_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void GetInstanceRequest::setPort(int port)
|
|
||||||
{
|
|
||||||
port_ = port;
|
|
||||||
setParameter("Port", std::to_string(port));
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string GetInstanceRequest::getHost()const
|
|
||||||
{
|
|
||||||
return host_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void GetInstanceRequest::setHost(const std::string& host)
|
|
||||||
{
|
|
||||||
host_ = host;
|
|
||||||
setParameter("Host", host);
|
|
||||||
}
|
|
||||||
|
|
||||||
long GetInstanceRequest::getTid()const
|
long GetInstanceRequest::getTid()const
|
||||||
{
|
{
|
||||||
return tid_;
|
return tid_;
|
||||||
@@ -71,3 +49,25 @@ void GetInstanceRequest::setSid(const std::string& sid)
|
|||||||
setParameter("Sid", sid);
|
setParameter("Sid", sid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int GetInstanceRequest::getPort()const
|
||||||
|
{
|
||||||
|
return port_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetInstanceRequest::setPort(int port)
|
||||||
|
{
|
||||||
|
port_ = port;
|
||||||
|
setParameter("Port", std::to_string(port));
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetInstanceRequest::getHost()const
|
||||||
|
{
|
||||||
|
return host_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetInstanceRequest::setHost(const std::string& host)
|
||||||
|
{
|
||||||
|
host_ = host;
|
||||||
|
setParameter("Host", host);
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -84,6 +84,12 @@ void GetInstanceResult::parse(const std::string &payload)
|
|||||||
instance_.databasePassword = instanceNode["DatabasePassword"].asString();
|
instance_.databasePassword = instanceNode["DatabasePassword"].asString();
|
||||||
if(!instanceNode["InstanceSource"].isNull())
|
if(!instanceNode["InstanceSource"].isNull())
|
||||||
instance_.instanceSource = instanceNode["InstanceSource"].asString();
|
instance_.instanceSource = instanceNode["InstanceSource"].asString();
|
||||||
|
auto allOwnerIdList = instanceNode["OwnerIdList"]["OwnerIds"];
|
||||||
|
for (auto value : allOwnerIdList)
|
||||||
|
instance_.ownerIdList.push_back(value.asString());
|
||||||
|
auto allOwnerNameList = instanceNode["OwnerNameList"]["OwnerNames"];
|
||||||
|
for (auto value : allOwnerNameList)
|
||||||
|
instance_.ownerNameList.push_back(value.asString());
|
||||||
if(!value["Success"].isNull())
|
if(!value["Success"].isNull())
|
||||||
success_ = value["Success"].asString() == "true";
|
success_ = value["Success"].asString() == "true";
|
||||||
if(!value["ErrorMessage"].isNull())
|
if(!value["ErrorMessage"].isNull())
|
||||||
|
|||||||
@@ -56,28 +56,28 @@ void GetTableDBTopologyResult::parse(const std::string &payload)
|
|||||||
dataSourceObject.dbType = dBTopologyNodeDataSourceListDataSource["DbType"].asString();
|
dataSourceObject.dbType = dBTopologyNodeDataSourceListDataSource["DbType"].asString();
|
||||||
if(!dBTopologyNodeDataSourceListDataSource["Sid"].isNull())
|
if(!dBTopologyNodeDataSourceListDataSource["Sid"].isNull())
|
||||||
dataSourceObject.sid = dBTopologyNodeDataSourceListDataSource["Sid"].asString();
|
dataSourceObject.sid = dBTopologyNodeDataSourceListDataSource["Sid"].asString();
|
||||||
auto allDatabaseListNode = allDataSourceListNode["DatabaseList"]["Database"];
|
auto allDatabaseListNode = dBTopologyNodeDataSourceListDataSource["DatabaseList"]["Database"];
|
||||||
for (auto allDataSourceListNodeDatabaseListDatabase : allDatabaseListNode)
|
for (auto dBTopologyNodeDataSourceListDataSourceDatabaseListDatabase : allDatabaseListNode)
|
||||||
{
|
{
|
||||||
DBTopology::DataSource::Database databaseListObject;
|
DBTopology::DataSource::Database databaseListObject;
|
||||||
if(!allDataSourceListNodeDatabaseListDatabase["DbName"].isNull())
|
if(!dBTopologyNodeDataSourceListDataSourceDatabaseListDatabase["DbName"].isNull())
|
||||||
databaseListObject.dbName = allDataSourceListNodeDatabaseListDatabase["DbName"].asString();
|
databaseListObject.dbName = dBTopologyNodeDataSourceListDataSourceDatabaseListDatabase["DbName"].asString();
|
||||||
if(!allDataSourceListNodeDatabaseListDatabase["DbId"].isNull())
|
if(!dBTopologyNodeDataSourceListDataSourceDatabaseListDatabase["DbId"].isNull())
|
||||||
databaseListObject.dbId = allDataSourceListNodeDatabaseListDatabase["DbId"].asString();
|
databaseListObject.dbId = dBTopologyNodeDataSourceListDataSourceDatabaseListDatabase["DbId"].asString();
|
||||||
if(!allDataSourceListNodeDatabaseListDatabase["EnvType"].isNull())
|
if(!dBTopologyNodeDataSourceListDataSourceDatabaseListDatabase["EnvType"].isNull())
|
||||||
databaseListObject.envType = allDataSourceListNodeDatabaseListDatabase["EnvType"].asString();
|
databaseListObject.envType = dBTopologyNodeDataSourceListDataSourceDatabaseListDatabase["EnvType"].asString();
|
||||||
if(!allDataSourceListNodeDatabaseListDatabase["DbType"].isNull())
|
if(!dBTopologyNodeDataSourceListDataSourceDatabaseListDatabase["DbType"].isNull())
|
||||||
databaseListObject.dbType = allDataSourceListNodeDatabaseListDatabase["DbType"].asString();
|
databaseListObject.dbType = dBTopologyNodeDataSourceListDataSourceDatabaseListDatabase["DbType"].asString();
|
||||||
auto allTableListNode = allDatabaseListNode["TableList"]["Table"];
|
auto allTableListNode = dBTopologyNodeDataSourceListDataSourceDatabaseListDatabase["TableList"]["Table"];
|
||||||
for (auto allDatabaseListNodeTableListTable : allTableListNode)
|
for (auto dBTopologyNodeDataSourceListDataSourceDatabaseListDatabaseTableListTable : allTableListNode)
|
||||||
{
|
{
|
||||||
DBTopology::DataSource::Database::Table tableListObject;
|
DBTopology::DataSource::Database::Table tableListObject;
|
||||||
if(!allDatabaseListNodeTableListTable["TableName"].isNull())
|
if(!dBTopologyNodeDataSourceListDataSourceDatabaseListDatabaseTableListTable["TableName"].isNull())
|
||||||
tableListObject.tableName = allDatabaseListNodeTableListTable["TableName"].asString();
|
tableListObject.tableName = dBTopologyNodeDataSourceListDataSourceDatabaseListDatabaseTableListTable["TableName"].asString();
|
||||||
if(!allDatabaseListNodeTableListTable["TableId"].isNull())
|
if(!dBTopologyNodeDataSourceListDataSourceDatabaseListDatabaseTableListTable["TableId"].isNull())
|
||||||
tableListObject.tableId = allDatabaseListNodeTableListTable["TableId"].asString();
|
tableListObject.tableId = dBTopologyNodeDataSourceListDataSourceDatabaseListDatabaseTableListTable["TableId"].asString();
|
||||||
if(!allDatabaseListNodeTableListTable["TableType"].isNull())
|
if(!dBTopologyNodeDataSourceListDataSourceDatabaseListDatabaseTableListTable["TableType"].isNull())
|
||||||
tableListObject.tableType = allDatabaseListNodeTableListTable["TableType"].asString();
|
tableListObject.tableType = dBTopologyNodeDataSourceListDataSourceDatabaseListDatabaseTableListTable["TableType"].asString();
|
||||||
databaseListObject.tableList.push_back(tableListObject);
|
databaseListObject.tableList.push_back(tableListObject);
|
||||||
}
|
}
|
||||||
dataSourceObject.databaseList.push_back(databaseListObject);
|
dataSourceObject.databaseList.push_back(databaseListObject);
|
||||||
|
|||||||
@@ -27,17 +27,6 @@ GetUserRequest::GetUserRequest() :
|
|||||||
GetUserRequest::~GetUserRequest()
|
GetUserRequest::~GetUserRequest()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
long GetUserRequest::getUid()const
|
|
||||||
{
|
|
||||||
return uid_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void GetUserRequest::setUid(long uid)
|
|
||||||
{
|
|
||||||
uid_ = uid;
|
|
||||||
setParameter("Uid", std::to_string(uid));
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string GetUserRequest::getUserId()const
|
std::string GetUserRequest::getUserId()const
|
||||||
{
|
{
|
||||||
return userId_;
|
return userId_;
|
||||||
@@ -60,3 +49,14 @@ void GetUserRequest::setTid(long tid)
|
|||||||
setParameter("Tid", std::to_string(tid));
|
setParameter("Tid", std::to_string(tid));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string GetUserRequest::getUid()const
|
||||||
|
{
|
||||||
|
return uid_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetUserRequest::setUid(const std::string& uid)
|
||||||
|
{
|
||||||
|
uid_ = uid;
|
||||||
|
setParameter("Uid", uid);
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ void GetUserResult::parse(const std::string &payload)
|
|||||||
if(!userNode["UserId"].isNull())
|
if(!userNode["UserId"].isNull())
|
||||||
user_.userId = userNode["UserId"].asString();
|
user_.userId = userNode["UserId"].asString();
|
||||||
if(!userNode["Uid"].isNull())
|
if(!userNode["Uid"].isNull())
|
||||||
user_.uid = std::stol(userNode["Uid"].asString());
|
user_.uid = userNode["Uid"].asString();
|
||||||
if(!userNode["NickName"].isNull())
|
if(!userNode["NickName"].isNull())
|
||||||
user_.nickName = userNode["NickName"].asString();
|
user_.nickName = userNode["NickName"].asString();
|
||||||
if(!userNode["Mobile"].isNull())
|
if(!userNode["Mobile"].isNull())
|
||||||
|
|||||||
@@ -71,22 +71,22 @@ void ListDatabaseUserPermssionsResult::parse(const std::string &payload)
|
|||||||
userPermissionsObject.tableId = valueUserPermissionsUserPermission["TableId"].asString();
|
userPermissionsObject.tableId = valueUserPermissionsUserPermission["TableId"].asString();
|
||||||
if(!valueUserPermissionsUserPermission["ColumnName"].isNull())
|
if(!valueUserPermissionsUserPermission["ColumnName"].isNull())
|
||||||
userPermissionsObject.columnName = valueUserPermissionsUserPermission["ColumnName"].asString();
|
userPermissionsObject.columnName = valueUserPermissionsUserPermission["ColumnName"].asString();
|
||||||
auto allPermDetailsNode = allUserPermissionsNode["PermDetails"]["PermDetail"];
|
auto allPermDetailsNode = valueUserPermissionsUserPermission["PermDetails"]["PermDetail"];
|
||||||
for (auto allUserPermissionsNodePermDetailsPermDetail : allPermDetailsNode)
|
for (auto valueUserPermissionsUserPermissionPermDetailsPermDetail : allPermDetailsNode)
|
||||||
{
|
{
|
||||||
UserPermission::PermDetail permDetailsObject;
|
UserPermission::PermDetail permDetailsObject;
|
||||||
if(!allUserPermissionsNodePermDetailsPermDetail["PermType"].isNull())
|
if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["PermType"].isNull())
|
||||||
permDetailsObject.permType = allUserPermissionsNodePermDetailsPermDetail["PermType"].asString();
|
permDetailsObject.permType = valueUserPermissionsUserPermissionPermDetailsPermDetail["PermType"].asString();
|
||||||
if(!allUserPermissionsNodePermDetailsPermDetail["ExpireDate"].isNull())
|
if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["ExpireDate"].isNull())
|
||||||
permDetailsObject.expireDate = allUserPermissionsNodePermDetailsPermDetail["ExpireDate"].asString();
|
permDetailsObject.expireDate = valueUserPermissionsUserPermissionPermDetailsPermDetail["ExpireDate"].asString();
|
||||||
if(!allUserPermissionsNodePermDetailsPermDetail["CreateDate"].isNull())
|
if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["CreateDate"].isNull())
|
||||||
permDetailsObject.createDate = allUserPermissionsNodePermDetailsPermDetail["CreateDate"].asString();
|
permDetailsObject.createDate = valueUserPermissionsUserPermissionPermDetailsPermDetail["CreateDate"].asString();
|
||||||
if(!allUserPermissionsNodePermDetailsPermDetail["OriginFrom"].isNull())
|
if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["OriginFrom"].isNull())
|
||||||
permDetailsObject.originFrom = allUserPermissionsNodePermDetailsPermDetail["OriginFrom"].asString();
|
permDetailsObject.originFrom = valueUserPermissionsUserPermissionPermDetailsPermDetail["OriginFrom"].asString();
|
||||||
if(!allUserPermissionsNodePermDetailsPermDetail["UserAccessId"].isNull())
|
if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["UserAccessId"].isNull())
|
||||||
permDetailsObject.userAccessId = allUserPermissionsNodePermDetailsPermDetail["UserAccessId"].asString();
|
permDetailsObject.userAccessId = valueUserPermissionsUserPermissionPermDetailsPermDetail["UserAccessId"].asString();
|
||||||
if(!allUserPermissionsNodePermDetailsPermDetail["ExtraData"].isNull())
|
if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["ExtraData"].isNull())
|
||||||
permDetailsObject.extraData = allUserPermissionsNodePermDetailsPermDetail["ExtraData"].asString();
|
permDetailsObject.extraData = valueUserPermissionsUserPermissionPermDetailsPermDetail["ExtraData"].asString();
|
||||||
userPermissionsObject.permDetails.push_back(permDetailsObject);
|
userPermissionsObject.permDetails.push_back(permDetailsObject);
|
||||||
}
|
}
|
||||||
userPermissions_.push_back(userPermissionsObject);
|
userPermissions_.push_back(userPermissionsObject);
|
||||||
|
|||||||
@@ -87,6 +87,12 @@ void ListInstancesResult::parse(const std::string &payload)
|
|||||||
instanceListObject.databasePassword = valueInstanceListInstance["DatabasePassword"].asString();
|
instanceListObject.databasePassword = valueInstanceListInstance["DatabasePassword"].asString();
|
||||||
if(!valueInstanceListInstance["InstanceSource"].isNull())
|
if(!valueInstanceListInstance["InstanceSource"].isNull())
|
||||||
instanceListObject.instanceSource = valueInstanceListInstance["InstanceSource"].asString();
|
instanceListObject.instanceSource = valueInstanceListInstance["InstanceSource"].asString();
|
||||||
|
auto allOwnerIdList = value["OwnerIdList"]["OwnerIds"];
|
||||||
|
for (auto value : allOwnerIdList)
|
||||||
|
instanceListObject.ownerIdList.push_back(value.asString());
|
||||||
|
auto allOwnerNameList = value["OwnerNameList"]["OwnerNames"];
|
||||||
|
for (auto value : allOwnerNameList)
|
||||||
|
instanceListObject.ownerNameList.push_back(value.asString());
|
||||||
instanceList_.push_back(instanceListObject);
|
instanceList_.push_back(instanceListObject);
|
||||||
}
|
}
|
||||||
if(!value["Success"].isNull())
|
if(!value["Success"].isNull())
|
||||||
|
|||||||
@@ -71,22 +71,22 @@ void ListUserPermissionsResult::parse(const std::string &payload)
|
|||||||
userPermissionsObject.tableId = valueUserPermissionsUserPermission["TableId"].asString();
|
userPermissionsObject.tableId = valueUserPermissionsUserPermission["TableId"].asString();
|
||||||
if(!valueUserPermissionsUserPermission["ColumnName"].isNull())
|
if(!valueUserPermissionsUserPermission["ColumnName"].isNull())
|
||||||
userPermissionsObject.columnName = valueUserPermissionsUserPermission["ColumnName"].asString();
|
userPermissionsObject.columnName = valueUserPermissionsUserPermission["ColumnName"].asString();
|
||||||
auto allPermDetailsNode = allUserPermissionsNode["PermDetails"]["PermDetail"];
|
auto allPermDetailsNode = valueUserPermissionsUserPermission["PermDetails"]["PermDetail"];
|
||||||
for (auto allUserPermissionsNodePermDetailsPermDetail : allPermDetailsNode)
|
for (auto valueUserPermissionsUserPermissionPermDetailsPermDetail : allPermDetailsNode)
|
||||||
{
|
{
|
||||||
UserPermission::PermDetail permDetailsObject;
|
UserPermission::PermDetail permDetailsObject;
|
||||||
if(!allUserPermissionsNodePermDetailsPermDetail["PermType"].isNull())
|
if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["PermType"].isNull())
|
||||||
permDetailsObject.permType = allUserPermissionsNodePermDetailsPermDetail["PermType"].asString();
|
permDetailsObject.permType = valueUserPermissionsUserPermissionPermDetailsPermDetail["PermType"].asString();
|
||||||
if(!allUserPermissionsNodePermDetailsPermDetail["ExpireDate"].isNull())
|
if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["ExpireDate"].isNull())
|
||||||
permDetailsObject.expireDate = allUserPermissionsNodePermDetailsPermDetail["ExpireDate"].asString();
|
permDetailsObject.expireDate = valueUserPermissionsUserPermissionPermDetailsPermDetail["ExpireDate"].asString();
|
||||||
if(!allUserPermissionsNodePermDetailsPermDetail["CreateDate"].isNull())
|
if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["CreateDate"].isNull())
|
||||||
permDetailsObject.createDate = allUserPermissionsNodePermDetailsPermDetail["CreateDate"].asString();
|
permDetailsObject.createDate = valueUserPermissionsUserPermissionPermDetailsPermDetail["CreateDate"].asString();
|
||||||
if(!allUserPermissionsNodePermDetailsPermDetail["OriginFrom"].isNull())
|
if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["OriginFrom"].isNull())
|
||||||
permDetailsObject.originFrom = allUserPermissionsNodePermDetailsPermDetail["OriginFrom"].asString();
|
permDetailsObject.originFrom = valueUserPermissionsUserPermissionPermDetailsPermDetail["OriginFrom"].asString();
|
||||||
if(!allUserPermissionsNodePermDetailsPermDetail["UserAccessId"].isNull())
|
if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["UserAccessId"].isNull())
|
||||||
permDetailsObject.userAccessId = allUserPermissionsNodePermDetailsPermDetail["UserAccessId"].asString();
|
permDetailsObject.userAccessId = valueUserPermissionsUserPermissionPermDetailsPermDetail["UserAccessId"].asString();
|
||||||
if(!allUserPermissionsNodePermDetailsPermDetail["ExtraData"].isNull())
|
if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["ExtraData"].isNull())
|
||||||
permDetailsObject.extraData = allUserPermissionsNodePermDetailsPermDetail["ExtraData"].asString();
|
permDetailsObject.extraData = valueUserPermissionsUserPermissionPermDetailsPermDetail["ExtraData"].asString();
|
||||||
userPermissionsObject.permDetails.push_back(permDetailsObject);
|
userPermissionsObject.permDetails.push_back(permDetailsObject);
|
||||||
}
|
}
|
||||||
userPermissions_.push_back(userPermissionsObject);
|
userPermissions_.push_back(userPermissionsObject);
|
||||||
|
|||||||
@@ -27,17 +27,6 @@ ListUsersRequest::ListUsersRequest() :
|
|||||||
ListUsersRequest::~ListUsersRequest()
|
ListUsersRequest::~ListUsersRequest()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
std::string ListUsersRequest::getUserState()const
|
|
||||||
{
|
|
||||||
return userState_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ListUsersRequest::setUserState(const std::string& userState)
|
|
||||||
{
|
|
||||||
userState_ = userState;
|
|
||||||
setParameter("UserState", userState);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string ListUsersRequest::getRole()const
|
std::string ListUsersRequest::getRole()const
|
||||||
{
|
{
|
||||||
return role_;
|
return role_;
|
||||||
@@ -49,17 +38,6 @@ void ListUsersRequest::setRole(const std::string& role)
|
|||||||
setParameter("Role", role);
|
setParameter("Role", role);
|
||||||
}
|
}
|
||||||
|
|
||||||
int ListUsersRequest::getPageSize()const
|
|
||||||
{
|
|
||||||
return pageSize_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ListUsersRequest::setPageSize(int pageSize)
|
|
||||||
{
|
|
||||||
pageSize_ = pageSize;
|
|
||||||
setParameter("PageSize", std::to_string(pageSize));
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string ListUsersRequest::getSearchKey()const
|
std::string ListUsersRequest::getSearchKey()const
|
||||||
{
|
{
|
||||||
return searchKey_;
|
return searchKey_;
|
||||||
@@ -93,3 +71,25 @@ void ListUsersRequest::setPageNumber(int pageNumber)
|
|||||||
setParameter("PageNumber", std::to_string(pageNumber));
|
setParameter("PageNumber", std::to_string(pageNumber));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string ListUsersRequest::getUserState()const
|
||||||
|
{
|
||||||
|
return userState_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListUsersRequest::setUserState(const std::string& userState)
|
||||||
|
{
|
||||||
|
userState_ = userState;
|
||||||
|
setParameter("UserState", userState);
|
||||||
|
}
|
||||||
|
|
||||||
|
int ListUsersRequest::getPageSize()const
|
||||||
|
{
|
||||||
|
return pageSize_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListUsersRequest::setPageSize(int pageSize)
|
||||||
|
{
|
||||||
|
pageSize_ = pageSize;
|
||||||
|
setParameter("PageSize", std::to_string(pageSize));
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -46,13 +46,13 @@ void ListUsersResult::parse(const std::string &payload)
|
|||||||
if(!valueUserListUser["UserId"].isNull())
|
if(!valueUserListUser["UserId"].isNull())
|
||||||
userListObject.userId = valueUserListUser["UserId"].asString();
|
userListObject.userId = valueUserListUser["UserId"].asString();
|
||||||
if(!valueUserListUser["Uid"].isNull())
|
if(!valueUserListUser["Uid"].isNull())
|
||||||
userListObject.uid = std::stol(valueUserListUser["Uid"].asString());
|
userListObject.uid = valueUserListUser["Uid"].asString();
|
||||||
if(!valueUserListUser["NickName"].isNull())
|
if(!valueUserListUser["NickName"].isNull())
|
||||||
userListObject.nickName = valueUserListUser["NickName"].asString();
|
userListObject.nickName = valueUserListUser["NickName"].asString();
|
||||||
if(!valueUserListUser["Mobile"].isNull())
|
if(!valueUserListUser["Mobile"].isNull())
|
||||||
userListObject.mobile = valueUserListUser["Mobile"].asString();
|
userListObject.mobile = valueUserListUser["Mobile"].asString();
|
||||||
if(!valueUserListUser["ParentUid"].isNull())
|
if(!valueUserListUser["ParentUid"].isNull())
|
||||||
userListObject.parentUid = std::stol(valueUserListUser["ParentUid"].asString());
|
userListObject.parentUid = valueUserListUser["ParentUid"].asString();
|
||||||
if(!valueUserListUser["State"].isNull())
|
if(!valueUserListUser["State"].isNull())
|
||||||
userListObject.state = valueUserListUser["State"].asString();
|
userListObject.state = valueUserListUser["State"].asString();
|
||||||
if(!valueUserListUser["LastLoginTime"].isNull())
|
if(!valueUserListUser["LastLoginTime"].isNull())
|
||||||
|
|||||||
@@ -55,16 +55,16 @@ void ListWorkFlowNodesResult::parse(const std::string &payload)
|
|||||||
workflowNodesObject.createUserId = std::stol(valueWorkflowNodesWorkflowNode["CreateUserId"].asString());
|
workflowNodesObject.createUserId = std::stol(valueWorkflowNodesWorkflowNode["CreateUserId"].asString());
|
||||||
if(!valueWorkflowNodesWorkflowNode["CreateUserNickName"].isNull())
|
if(!valueWorkflowNodesWorkflowNode["CreateUserNickName"].isNull())
|
||||||
workflowNodesObject.createUserNickName = valueWorkflowNodesWorkflowNode["CreateUserNickName"].asString();
|
workflowNodesObject.createUserNickName = valueWorkflowNodesWorkflowNode["CreateUserNickName"].asString();
|
||||||
auto allAuditUsersNode = allWorkflowNodesNode["AuditUsers"]["AuditUser"];
|
auto allAuditUsersNode = valueWorkflowNodesWorkflowNode["AuditUsers"]["AuditUser"];
|
||||||
for (auto allWorkflowNodesNodeAuditUsersAuditUser : allAuditUsersNode)
|
for (auto valueWorkflowNodesWorkflowNodeAuditUsersAuditUser : allAuditUsersNode)
|
||||||
{
|
{
|
||||||
WorkflowNode::AuditUser auditUsersObject;
|
WorkflowNode::AuditUser auditUsersObject;
|
||||||
if(!allWorkflowNodesNodeAuditUsersAuditUser["UserId"].isNull())
|
if(!valueWorkflowNodesWorkflowNodeAuditUsersAuditUser["UserId"].isNull())
|
||||||
auditUsersObject.userId = std::stol(allWorkflowNodesNodeAuditUsersAuditUser["UserId"].asString());
|
auditUsersObject.userId = std::stol(valueWorkflowNodesWorkflowNodeAuditUsersAuditUser["UserId"].asString());
|
||||||
if(!allWorkflowNodesNodeAuditUsersAuditUser["NickName"].isNull())
|
if(!valueWorkflowNodesWorkflowNodeAuditUsersAuditUser["NickName"].isNull())
|
||||||
auditUsersObject.nickName = allWorkflowNodesNodeAuditUsersAuditUser["NickName"].asString();
|
auditUsersObject.nickName = valueWorkflowNodesWorkflowNodeAuditUsersAuditUser["NickName"].asString();
|
||||||
if(!allWorkflowNodesNodeAuditUsersAuditUser["RealName"].isNull())
|
if(!valueWorkflowNodesWorkflowNodeAuditUsersAuditUser["RealName"].isNull())
|
||||||
auditUsersObject.realName = allWorkflowNodesNodeAuditUsersAuditUser["RealName"].asString();
|
auditUsersObject.realName = valueWorkflowNodesWorkflowNodeAuditUsersAuditUser["RealName"].asString();
|
||||||
workflowNodesObject.auditUsers.push_back(auditUsersObject);
|
workflowNodesObject.auditUsers.push_back(auditUsersObject);
|
||||||
}
|
}
|
||||||
workflowNodes_.push_back(workflowNodesObject);
|
workflowNodes_.push_back(workflowNodesObject);
|
||||||
|
|||||||
@@ -55,24 +55,24 @@ void ListWorkFlowTemplatesResult::parse(const std::string &payload)
|
|||||||
workFlowTemplatesObject.enabled = valueWorkFlowTemplatesWorkFlowTemplate["Enabled"].asString();
|
workFlowTemplatesObject.enabled = valueWorkFlowTemplatesWorkFlowTemplate["Enabled"].asString();
|
||||||
if(!valueWorkFlowTemplatesWorkFlowTemplate["CreateUserId"].isNull())
|
if(!valueWorkFlowTemplatesWorkFlowTemplate["CreateUserId"].isNull())
|
||||||
workFlowTemplatesObject.createUserId = std::stol(valueWorkFlowTemplatesWorkFlowTemplate["CreateUserId"].asString());
|
workFlowTemplatesObject.createUserId = std::stol(valueWorkFlowTemplatesWorkFlowTemplate["CreateUserId"].asString());
|
||||||
auto allWorkflowNodesNode = allWorkFlowTemplatesNode["WorkflowNodes"]["WorkflowNode"];
|
auto allWorkflowNodesNode = valueWorkFlowTemplatesWorkFlowTemplate["WorkflowNodes"]["WorkflowNode"];
|
||||||
for (auto allWorkFlowTemplatesNodeWorkflowNodesWorkflowNode : allWorkflowNodesNode)
|
for (auto valueWorkFlowTemplatesWorkFlowTemplateWorkflowNodesWorkflowNode : allWorkflowNodesNode)
|
||||||
{
|
{
|
||||||
WorkFlowTemplate::WorkflowNode workflowNodesObject;
|
WorkFlowTemplate::WorkflowNode workflowNodesObject;
|
||||||
if(!allWorkFlowTemplatesNodeWorkflowNodesWorkflowNode["NodeId"].isNull())
|
if(!valueWorkFlowTemplatesWorkFlowTemplateWorkflowNodesWorkflowNode["NodeId"].isNull())
|
||||||
workflowNodesObject.nodeId = std::stol(allWorkFlowTemplatesNodeWorkflowNodesWorkflowNode["NodeId"].asString());
|
workflowNodesObject.nodeId = std::stol(valueWorkFlowTemplatesWorkFlowTemplateWorkflowNodesWorkflowNode["NodeId"].asString());
|
||||||
if(!allWorkFlowTemplatesNodeWorkflowNodesWorkflowNode["TemplateId"].isNull())
|
if(!valueWorkFlowTemplatesWorkFlowTemplateWorkflowNodesWorkflowNode["TemplateId"].isNull())
|
||||||
workflowNodesObject.templateId = std::stol(allWorkFlowTemplatesNodeWorkflowNodesWorkflowNode["TemplateId"].asString());
|
workflowNodesObject.templateId = std::stol(valueWorkFlowTemplatesWorkFlowTemplateWorkflowNodesWorkflowNode["TemplateId"].asString());
|
||||||
if(!allWorkFlowTemplatesNodeWorkflowNodesWorkflowNode["NodeName"].isNull())
|
if(!valueWorkFlowTemplatesWorkFlowTemplateWorkflowNodesWorkflowNode["NodeName"].isNull())
|
||||||
workflowNodesObject.nodeName = allWorkFlowTemplatesNodeWorkflowNodesWorkflowNode["NodeName"].asString();
|
workflowNodesObject.nodeName = valueWorkFlowTemplatesWorkFlowTemplateWorkflowNodesWorkflowNode["NodeName"].asString();
|
||||||
if(!allWorkFlowTemplatesNodeWorkflowNodesWorkflowNode["NodeType"].isNull())
|
if(!valueWorkFlowTemplatesWorkFlowTemplateWorkflowNodesWorkflowNode["NodeType"].isNull())
|
||||||
workflowNodesObject.nodeType = allWorkFlowTemplatesNodeWorkflowNodesWorkflowNode["NodeType"].asString();
|
workflowNodesObject.nodeType = valueWorkFlowTemplatesWorkFlowTemplateWorkflowNodesWorkflowNode["NodeType"].asString();
|
||||||
if(!allWorkFlowTemplatesNodeWorkflowNodesWorkflowNode["Comment"].isNull())
|
if(!valueWorkFlowTemplatesWorkFlowTemplateWorkflowNodesWorkflowNode["Comment"].isNull())
|
||||||
workflowNodesObject.comment = allWorkFlowTemplatesNodeWorkflowNodesWorkflowNode["Comment"].asString();
|
workflowNodesObject.comment = valueWorkFlowTemplatesWorkFlowTemplateWorkflowNodesWorkflowNode["Comment"].asString();
|
||||||
if(!allWorkFlowTemplatesNodeWorkflowNodesWorkflowNode["Position"].isNull())
|
if(!valueWorkFlowTemplatesWorkFlowTemplateWorkflowNodesWorkflowNode["Position"].isNull())
|
||||||
workflowNodesObject.position = std::stoi(allWorkFlowTemplatesNodeWorkflowNodesWorkflowNode["Position"].asString());
|
workflowNodesObject.position = std::stoi(valueWorkFlowTemplatesWorkFlowTemplateWorkflowNodesWorkflowNode["Position"].asString());
|
||||||
if(!allWorkFlowTemplatesNodeWorkflowNodesWorkflowNode["CreateUserId"].isNull())
|
if(!valueWorkFlowTemplatesWorkFlowTemplateWorkflowNodesWorkflowNode["CreateUserId"].isNull())
|
||||||
workflowNodesObject.createUserId = std::stol(allWorkFlowTemplatesNodeWorkflowNodesWorkflowNode["CreateUserId"].asString());
|
workflowNodesObject.createUserId = std::stol(valueWorkFlowTemplatesWorkFlowTemplateWorkflowNodesWorkflowNode["CreateUserId"].asString());
|
||||||
workFlowTemplatesObject.workflowNodes.push_back(workflowNodesObject);
|
workFlowTemplatesObject.workflowNodes.push_back(workflowNodesObject);
|
||||||
}
|
}
|
||||||
workFlowTemplates_.push_back(workFlowTemplatesObject);
|
workFlowTemplates_.push_back(workFlowTemplatesObject);
|
||||||
|
|||||||
@@ -38,17 +38,6 @@ void RegisterUserRequest::setRoleNames(const std::string& roleNames)
|
|||||||
setParameter("RoleNames", roleNames);
|
setParameter("RoleNames", roleNames);
|
||||||
}
|
}
|
||||||
|
|
||||||
long RegisterUserRequest::getUid()const
|
|
||||||
{
|
|
||||||
return uid_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void RegisterUserRequest::setUid(long uid)
|
|
||||||
{
|
|
||||||
uid_ = uid;
|
|
||||||
setParameter("Uid", std::to_string(uid));
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string RegisterUserRequest::getUserNick()const
|
std::string RegisterUserRequest::getUserNick()const
|
||||||
{
|
{
|
||||||
return userNick_;
|
return userNick_;
|
||||||
@@ -82,3 +71,14 @@ void RegisterUserRequest::setTid(long tid)
|
|||||||
setParameter("Tid", std::to_string(tid));
|
setParameter("Tid", std::to_string(tid));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string RegisterUserRequest::getUid()const
|
||||||
|
{
|
||||||
|
return uid_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void RegisterUserRequest::setUid(const std::string& uid)
|
||||||
|
{
|
||||||
|
uid_ = uid;
|
||||||
|
setParameter("Uid", uid);
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user