You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
SOP/sop-sdk/sdk-c++/request/BaseRequest.h

61 lines
1003 B

#ifndef SDK_CXX_BASEREQUEST_H
#define SDK_CXX_BASEREQUEST_H
#include <string>
#include <map>
#include <vector>
#include "../common/RequestType.h"
using namespace std;
struct FileInfo {
/** 表单名称 */
string name;
/** 文件完整路径 */
string filepath;
};
/**
*
*/
class BaseRequest {
public:
/**
*
*/
map<string, string> bizModel;
/**
*
* @return
*/
virtual string getMethod() = 0;
/**
*
* @return
*/
virtual string getVersion() = 0;
/**
*
* @return
*/
virtual RequestType getRequestType() = 0;
vector<FileInfo> getFiles();
void setFiles(vector<FileInfo> files);
private:
vector<FileInfo> files = {};
void addFile(const FileInfo& filepath);
};
#endif //SDK_CXX_BASEREQUEST_H