New API Version of Work Order System.
This commit is contained in:
@@ -26,6 +26,8 @@
|
||||
#include "model/CloseTicketResult.h"
|
||||
#include "model/CreateTicketRequest.h"
|
||||
#include "model/CreateTicketResult.h"
|
||||
#include "model/GetMessageTagRequest.h"
|
||||
#include "model/GetMessageTagResult.h"
|
||||
#include "model/ListCategoriesRequest.h"
|
||||
#include "model/ListCategoriesResult.h"
|
||||
#include "model/ListProductsRequest.h"
|
||||
@@ -51,6 +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::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;
|
||||
@@ -77,6 +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;
|
||||
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;
|
||||
|
||||
@@ -35,13 +35,10 @@ namespace AlibabaCloud
|
||||
CloseTicketRequest();
|
||||
~CloseTicketRequest();
|
||||
|
||||
std::string getLanguage()const;
|
||||
void setLanguage(const std::string& language);
|
||||
std::string getTicketId()const;
|
||||
void setTicketId(const std::string& ticketId);
|
||||
|
||||
private:
|
||||
std::string language_;
|
||||
std::string ticketId_;
|
||||
|
||||
};
|
||||
|
||||
@@ -35,35 +35,17 @@ namespace AlibabaCloud
|
||||
CreateTicketRequest();
|
||||
~CreateTicketRequest();
|
||||
|
||||
std::string getProductCode()const;
|
||||
void setProductCode(const std::string& productCode);
|
||||
std::string getLanguage()const;
|
||||
void setLanguage(const std::string& language);
|
||||
std::string getTitle()const;
|
||||
void setTitle(const std::string& title);
|
||||
std::string getContent()const;
|
||||
void setContent(const std::string& content);
|
||||
std::string getNotifyTimeRange()const;
|
||||
void setNotifyTimeRange(const std::string& notifyTimeRange);
|
||||
std::string getPhone()const;
|
||||
void setPhone(const std::string& phone);
|
||||
std::string getCategory()const;
|
||||
void setCategory(const std::string& category);
|
||||
std::string getEmail()const;
|
||||
void setEmail(const std::string& email);
|
||||
std::string getSecretContent()const;
|
||||
void setSecretContent(const std::string& secretContent);
|
||||
int getSeverity()const;
|
||||
void setSeverity(int severity);
|
||||
std::string getDescription()const;
|
||||
void setDescription(const std::string& description);
|
||||
std::string getCategoryId()const;
|
||||
void setCategoryId(const std::string& categoryId);
|
||||
|
||||
private:
|
||||
std::string productCode_;
|
||||
std::string language_;
|
||||
std::string title_;
|
||||
std::string content_;
|
||||
std::string notifyTimeRange_;
|
||||
std::string phone_;
|
||||
std::string category_;
|
||||
std::string email_;
|
||||
std::string secretContent_;
|
||||
int severity_;
|
||||
std::string description_;
|
||||
std::string categoryId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ namespace AlibabaCloud
|
||||
~CreateTicketResult();
|
||||
std::string getMessage()const;
|
||||
std::string getData()const;
|
||||
std::string getCode()const;
|
||||
int getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
@@ -47,7 +47,7 @@ namespace AlibabaCloud
|
||||
private:
|
||||
std::string message_;
|
||||
std::string data_;
|
||||
std::string code_;
|
||||
int code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* 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_WORKORDER_MODEL_GETMESSAGETAGREQUEST_H_
|
||||
#define ALIBABACLOUD_WORKORDER_MODEL_GETMESSAGETAGREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/workorder/WorkorderExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Workorder
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_WORKORDER_EXPORT GetMessageTagRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetMessageTagRequest();
|
||||
~GetMessageTagRequest();
|
||||
|
||||
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_WORKORDER_MODEL_GETMESSAGETAGREQUEST_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* 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_WORKORDER_MODEL_GETMESSAGETAGRESULT_H_
|
||||
#define ALIBABACLOUD_WORKORDER_MODEL_GETMESSAGETAGRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/workorder/WorkorderExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Workorder
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_WORKORDER_EXPORT GetMessageTagResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
GetMessageTagResult();
|
||||
explicit GetMessageTagResult(const std::string &payload);
|
||||
~GetMessageTagResult();
|
||||
std::string getMessage()const;
|
||||
std::string getData()const;
|
||||
int getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string data_;
|
||||
int code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_WORKORDER_MODEL_GETMESSAGETAGRESULT_H_
|
||||
@@ -35,14 +35,11 @@ namespace AlibabaCloud
|
||||
ListCategoriesRequest();
|
||||
~ListCategoriesRequest();
|
||||
|
||||
std::string getProductCode()const;
|
||||
void setProductCode(const std::string& productCode);
|
||||
std::string getLanguage()const;
|
||||
void setLanguage(const std::string& language);
|
||||
long getParentId()const;
|
||||
void setParentId(long parentId);
|
||||
|
||||
private:
|
||||
std::string productCode_;
|
||||
std::string language_;
|
||||
long parentId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -32,14 +32,10 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_WORKORDER_EXPORT ListCategoriesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
struct DataItem
|
||||
{
|
||||
struct ListItem
|
||||
{
|
||||
int id;
|
||||
std::string name;
|
||||
};
|
||||
std::vector<ListItem> list;
|
||||
long categoryId;
|
||||
std::string categoryName;
|
||||
};
|
||||
|
||||
|
||||
@@ -47,7 +43,7 @@ namespace AlibabaCloud
|
||||
explicit ListCategoriesResult(const std::string &payload);
|
||||
~ListCategoriesResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::vector<DataItem> getData()const;
|
||||
int getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
@@ -55,7 +51,7 @@ namespace AlibabaCloud
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::vector<DataItem> data_;
|
||||
int code_;
|
||||
bool success_;
|
||||
|
||||
|
||||
@@ -35,11 +35,11 @@ namespace AlibabaCloud
|
||||
ListProductsRequest();
|
||||
~ListProductsRequest();
|
||||
|
||||
std::string getLanguage()const;
|
||||
void setLanguage(const std::string& language);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
|
||||
private:
|
||||
std::string language_;
|
||||
std::string name_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -32,41 +32,17 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_WORKORDER_EXPORT ListProductsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
struct DataItem
|
||||
{
|
||||
struct TechMoreItem
|
||||
struct RootsItem
|
||||
{
|
||||
struct ProductListItem
|
||||
{
|
||||
std::string description;
|
||||
std::string productCode;
|
||||
std::string name;
|
||||
};
|
||||
std::vector<TechMoreItem::ProductListItem> productList;
|
||||
std::string groupName;
|
||||
long categoryId;
|
||||
std::string categoryName;
|
||||
};
|
||||
struct HotConsultationItem
|
||||
{
|
||||
std::string description;
|
||||
std::string productCode;
|
||||
std::string name;
|
||||
};
|
||||
struct ConsultationMoreItem
|
||||
{
|
||||
std::string description;
|
||||
std::string productCode;
|
||||
std::string name;
|
||||
};
|
||||
struct HotTechItem
|
||||
{
|
||||
std::string description;
|
||||
std::string productCode;
|
||||
std::string name;
|
||||
};
|
||||
std::vector<ConsultationMoreItem> consultationMore;
|
||||
std::vector<HotTechItem> hotTech;
|
||||
std::vector<HotConsultationItem> hotConsultation;
|
||||
std::vector<TechMoreItem> techMore;
|
||||
std::string topCategoryName;
|
||||
long topCategoryId;
|
||||
std::vector<DataItem::RootsItem> roots;
|
||||
int orderNumber;
|
||||
};
|
||||
|
||||
|
||||
@@ -74,7 +50,7 @@ namespace AlibabaCloud
|
||||
explicit ListProductsResult(const std::string &payload);
|
||||
~ListProductsResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::vector<DataItem> getData()const;
|
||||
int getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
@@ -82,7 +58,7 @@ namespace AlibabaCloud
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::vector<DataItem> data_;
|
||||
int code_;
|
||||
bool success_;
|
||||
|
||||
|
||||
@@ -35,13 +35,10 @@ namespace AlibabaCloud
|
||||
ListTicketNotesRequest();
|
||||
~ListTicketNotesRequest();
|
||||
|
||||
std::string getLanguage()const;
|
||||
void setLanguage(const std::string& language);
|
||||
std::string getTicketId()const;
|
||||
void setTicketId(const std::string& ticketId);
|
||||
|
||||
private:
|
||||
std::string language_;
|
||||
std::string ticketId_;
|
||||
|
||||
};
|
||||
|
||||
@@ -32,16 +32,25 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_WORKORDER_EXPORT ListTicketNotesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
struct DataItem
|
||||
{
|
||||
struct ListItem
|
||||
struct DataInfo
|
||||
{
|
||||
std::string noteId;
|
||||
bool fromOfficial;
|
||||
std::string content;
|
||||
int gmtCreated;
|
||||
std::string schema;
|
||||
};
|
||||
std::vector<ListItem> list;
|
||||
struct UserInfo
|
||||
{
|
||||
int role;
|
||||
std::string userName;
|
||||
};
|
||||
DataInfo dataInfo;
|
||||
int status;
|
||||
int type;
|
||||
long createTime;
|
||||
long dialogId;
|
||||
UserInfo userInfo;
|
||||
std::string tip;
|
||||
};
|
||||
|
||||
|
||||
@@ -49,7 +58,7 @@ namespace AlibabaCloud
|
||||
explicit ListTicketNotesResult(const std::string &payload);
|
||||
~ListTicketNotesResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::vector<DataItem> getData()const;
|
||||
int getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
@@ -57,7 +66,7 @@ namespace AlibabaCloud
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::vector<DataItem> data_;
|
||||
int code_;
|
||||
bool success_;
|
||||
|
||||
|
||||
@@ -35,35 +35,29 @@ namespace AlibabaCloud
|
||||
ListTicketsRequest();
|
||||
~ListTicketsRequest();
|
||||
|
||||
std::string getProductCode()const;
|
||||
void setProductCode(const std::string& productCode);
|
||||
std::string getLanguage()const;
|
||||
void setLanguage(const std::string& language);
|
||||
std::string getSubUserId()const;
|
||||
void setSubUserId(const std::string& subUserId);
|
||||
long getCreatedBeforeTime()const;
|
||||
void setCreatedBeforeTime(long createdBeforeTime);
|
||||
long getBeginDate()const;
|
||||
void setBeginDate(long beginDate);
|
||||
std::vector<std::string> getStatusList()const;
|
||||
void setStatusList(const std::vector<std::string>& statusList);
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
long getEndDate()const;
|
||||
void setEndDate(long endDate);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getIds()const;
|
||||
void setIds(const std::string& ids);
|
||||
std::string getTicketStatus()const;
|
||||
void setTicketStatus(const std::string& ticketStatus);
|
||||
int getPageStart()const;
|
||||
void setPageStart(int pageStart);
|
||||
long getCreatedAfterTime()const;
|
||||
void setCreatedAfterTime(long createdAfterTime);
|
||||
std::string getKeyword()const;
|
||||
void setKeyword(const std::string& keyword);
|
||||
std::string getTicketId()const;
|
||||
void setTicketId(const std::string& ticketId);
|
||||
|
||||
private:
|
||||
std::string productCode_;
|
||||
std::string language_;
|
||||
std::string subUserId_;
|
||||
long createdBeforeTime_;
|
||||
long beginDate_;
|
||||
std::vector<std::string> statusList_;
|
||||
int pageNumber_;
|
||||
long endDate_;
|
||||
int pageSize_;
|
||||
std::string ids_;
|
||||
std::string ticketStatus_;
|
||||
int pageStart_;
|
||||
long createdAfterTime_;
|
||||
std::string keyword_;
|
||||
std::string ticketId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -32,36 +32,38 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_WORKORDER_EXPORT ListTicketsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
struct DataItem
|
||||
{
|
||||
struct ListItem
|
||||
struct Status
|
||||
{
|
||||
std::string creatorId;
|
||||
std::string title;
|
||||
std::string ticketStatus;
|
||||
std::string id;
|
||||
int addTime;
|
||||
std::string label;
|
||||
std::string value;
|
||||
};
|
||||
int pageSize;
|
||||
int currentPage;
|
||||
int total;
|
||||
std::vector<ListItem> list;
|
||||
Status status;
|
||||
std::string ticketId;
|
||||
std::string title;
|
||||
};
|
||||
|
||||
|
||||
ListTicketsResult();
|
||||
explicit ListTicketsResult(const std::string &payload);
|
||||
~ListTicketsResult();
|
||||
long getTotalCount()const;
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
int getPageSize()const;
|
||||
int getPageNumber()const;
|
||||
std::vector<DataItem> getData()const;
|
||||
int getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
long totalCount_;
|
||||
std::string message_;
|
||||
Data data_;
|
||||
int pageSize_;
|
||||
int pageNumber_;
|
||||
std::vector<DataItem> data_;
|
||||
int code_;
|
||||
bool success_;
|
||||
|
||||
|
||||
@@ -35,20 +35,17 @@ namespace AlibabaCloud
|
||||
ReplyTicketRequest();
|
||||
~ReplyTicketRequest();
|
||||
|
||||
std::string getLanguage()const;
|
||||
void setLanguage(const std::string& language);
|
||||
std::string getTicketId()const;
|
||||
void setTicketId(const std::string& ticketId);
|
||||
std::string getSecContent()const;
|
||||
void setSecContent(const std::string& secContent);
|
||||
std::string getContent()const;
|
||||
void setContent(const std::string& content);
|
||||
std::string getSecretContent()const;
|
||||
void setSecretContent(const std::string& secretContent);
|
||||
std::string getTicketId()const;
|
||||
void setTicketId(const std::string& ticketId);
|
||||
|
||||
private:
|
||||
std::string language_;
|
||||
std::string ticketId_;
|
||||
std::string secContent_;
|
||||
std::string content_;
|
||||
std::string secretContent_;
|
||||
std::string ticketId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -38,6 +38,7 @@ namespace AlibabaCloud
|
||||
explicit ReplyTicketResult(const std::string &payload);
|
||||
~ReplyTicketResult();
|
||||
std::string getMessage()const;
|
||||
std::string getData()const;
|
||||
int getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
@@ -45,6 +46,7 @@ namespace AlibabaCloud
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string data_;
|
||||
int code_;
|
||||
bool success_;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user