Support Aliyun Workorder OpenAPI.

This commit is contained in:
sdk-team
2021-06-08 15:25:57 +00:00
parent 0d6b5d7108
commit 685112f414
23 changed files with 134 additions and 120 deletions

View File

@@ -26,8 +26,8 @@
#include "model/CloseTicketResult.h"
#include "model/CreateTicketRequest.h"
#include "model/CreateTicketResult.h"
#include "model/GetMessageTagRequest.h"
#include "model/GetMessageTagResult.h"
#include "model/GetMqConsumerTagRequest.h"
#include "model/GetMqConsumerTagResult.h"
#include "model/ListCategoriesRequest.h"
#include "model/ListCategoriesResult.h"
#include "model/ListProductsRequest.h"
@@ -53,9 +53,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::CreateTicketResult> CreateTicketOutcome;
typedef std::future<CreateTicketOutcome> CreateTicketOutcomeCallable;
typedef std::function<void(const WorkorderClient*, const Model::CreateTicketRequest&, const CreateTicketOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateTicketAsyncHandler;
typedef Outcome<Error, Model::GetMessageTagResult> GetMessageTagOutcome;
typedef std::future<GetMessageTagOutcome> GetMessageTagOutcomeCallable;
typedef std::function<void(const WorkorderClient*, const Model::GetMessageTagRequest&, const GetMessageTagOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetMessageTagAsyncHandler;
typedef Outcome<Error, Model::GetMqConsumerTagResult> GetMqConsumerTagOutcome;
typedef std::future<GetMqConsumerTagOutcome> GetMqConsumerTagOutcomeCallable;
typedef std::function<void(const WorkorderClient*, const Model::GetMqConsumerTagRequest&, const GetMqConsumerTagOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetMqConsumerTagAsyncHandler;
typedef Outcome<Error, Model::ListCategoriesResult> ListCategoriesOutcome;
typedef std::future<ListCategoriesOutcome> ListCategoriesOutcomeCallable;
typedef std::function<void(const WorkorderClient*, const Model::ListCategoriesRequest&, const ListCategoriesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListCategoriesAsyncHandler;
@@ -82,9 +82,9 @@ namespace AlibabaCloud
CreateTicketOutcome createTicket(const Model::CreateTicketRequest &request)const;
void createTicketAsync(const Model::CreateTicketRequest& request, const CreateTicketAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateTicketOutcomeCallable createTicketCallable(const Model::CreateTicketRequest& request) const;
GetMessageTagOutcome getMessageTag(const Model::GetMessageTagRequest &request)const;
void getMessageTagAsync(const Model::GetMessageTagRequest& request, const GetMessageTagAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetMessageTagOutcomeCallable getMessageTagCallable(const Model::GetMessageTagRequest& request) const;
GetMqConsumerTagOutcome getMqConsumerTag(const Model::GetMqConsumerTagRequest &request)const;
void getMqConsumerTagAsync(const Model::GetMqConsumerTagRequest& request, const GetMqConsumerTagAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetMqConsumerTagOutcomeCallable getMqConsumerTagCallable(const Model::GetMqConsumerTagRequest& request) const;
ListCategoriesOutcome listCategories(const Model::ListCategoriesRequest &request)const;
void listCategoriesAsync(const Model::ListCategoriesRequest& request, const ListCategoriesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListCategoriesOutcomeCallable listCategoriesCallable(const Model::ListCategoriesRequest& request) const;

View File

@@ -14,8 +14,8 @@
* limitations under the License.
*/
#ifndef ALIBABACLOUD_WORKORDER_MODEL_GETMESSAGETAGREQUEST_H_
#define ALIBABACLOUD_WORKORDER_MODEL_GETMESSAGETAGREQUEST_H_
#ifndef ALIBABACLOUD_WORKORDER_MODEL_GETMQCONSUMERTAGREQUEST_H_
#define ALIBABACLOUD_WORKORDER_MODEL_GETMQCONSUMERTAGREQUEST_H_
#include <string>
#include <vector>
@@ -28,12 +28,12 @@ namespace AlibabaCloud
{
namespace Model
{
class ALIBABACLOUD_WORKORDER_EXPORT GetMessageTagRequest : public RpcServiceRequest
class ALIBABACLOUD_WORKORDER_EXPORT GetMqConsumerTagRequest : public RpcServiceRequest
{
public:
GetMessageTagRequest();
~GetMessageTagRequest();
GetMqConsumerTagRequest();
~GetMqConsumerTagRequest();
private:
@@ -42,4 +42,4 @@ namespace AlibabaCloud
}
}
}
#endif // !ALIBABACLOUD_WORKORDER_MODEL_GETMESSAGETAGREQUEST_H_
#endif // !ALIBABACLOUD_WORKORDER_MODEL_GETMQCONSUMERTAGREQUEST_H_

View File

@@ -14,8 +14,8 @@
* limitations under the License.
*/
#ifndef ALIBABACLOUD_WORKORDER_MODEL_GETMESSAGETAGRESULT_H_
#define ALIBABACLOUD_WORKORDER_MODEL_GETMESSAGETAGRESULT_H_
#ifndef ALIBABACLOUD_WORKORDER_MODEL_GETMQCONSUMERTAGRESULT_H_
#define ALIBABACLOUD_WORKORDER_MODEL_GETMQCONSUMERTAGRESULT_H_
#include <string>
#include <vector>
@@ -29,14 +29,14 @@ namespace AlibabaCloud
{
namespace Model
{
class ALIBABACLOUD_WORKORDER_EXPORT GetMessageTagResult : public ServiceResult
class ALIBABACLOUD_WORKORDER_EXPORT GetMqConsumerTagResult : public ServiceResult
{
public:
GetMessageTagResult();
explicit GetMessageTagResult(const std::string &payload);
~GetMessageTagResult();
GetMqConsumerTagResult();
explicit GetMqConsumerTagResult(const std::string &payload);
~GetMqConsumerTagResult();
std::string getMessage()const;
std::string getData()const;
int getCode()const;
@@ -54,4 +54,4 @@ namespace AlibabaCloud
}
}
}
#endif // !ALIBABACLOUD_WORKORDER_MODEL_GETMESSAGETAGRESULT_H_
#endif // !ALIBABACLOUD_WORKORDER_MODEL_GETMQCONSUMERTAGRESULT_H_

View File

@@ -35,11 +35,14 @@ namespace AlibabaCloud
ListCategoriesRequest();
~ListCategoriesRequest();
long getParentId()const;
void setParentId(long parentId);
long getProductId()const;
void setProductId(long productId);
std::string getName()const;
void setName(const std::string& name);
private:
long parentId_;
long productId_;
std::string name_;
};
}

View File

@@ -34,15 +34,14 @@ namespace AlibabaCloud
public:
struct DataItem
{
struct RootsItem
struct ProductListItem
{
long categoryId;
std::string categoryName;
std::string productName;
long productId;
};
std::string topCategoryName;
long topCategoryId;
std::vector<DataItem::RootsItem> roots;
int orderNumber;
std::vector<DataItem::ProductListItem> productList;
long directoryId;
std::string directoryName;
};

View File

@@ -34,22 +34,22 @@ namespace AlibabaCloud
public:
struct DataItem
{
struct DataInfo
struct Dialog
{
std::string content;
std::string schema;
};
struct UserInfo
struct User
{
int role;
std::string userName;
std::string name;
};
DataInfo dataInfo;
int status;
int type;
User user;
Dialog dialog;
long createTime;
long dialogId;
UserInfo userInfo;
std::string tip;
};

View File

@@ -35,10 +35,10 @@ namespace AlibabaCloud
ListTicketsRequest();
~ListTicketsRequest();
long getBeginDate()const;
void setBeginDate(long beginDate);
std::vector<std::string> getStatusList()const;
void setStatusList(const std::vector<std::string>& statusList);
long getStartDate()const;
void setStartDate(long startDate);
int getPageNumber()const;
void setPageNumber(int pageNumber);
long getEndDate()const;
@@ -51,8 +51,8 @@ namespace AlibabaCloud
void setTicketId(const std::string& ticketId);
private:
long beginDate_;
std::vector<std::string> statusList_;
long startDate_;
int pageNumber_;
long endDate_;
int pageSize_;