DPS/DataPlatform/FindByInterface.h

62 lines
1.9 KiB
C++
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#pragma once
#include "DPData.h"
class FindByInterface :public DPData
{
Q_OBJECT
Q_PROPERTY(QString name READ getName WRITE setName)
Q_PROPERTY(QString description READ getDes WRITE setDes)
Q_PROPERTY(int Interfacetype READ getType WRITE setType)
Q_PROPERTY(int sortType READ getSortType WRITE setSortType)
Q_PROPERTY(int IsExport READ getIsExport WRITE setIsExport)
Q_PROPERTY(QString paralist READ getParalist WRITE setParalist )
Q_PROPERTY(QString sortAttribute READ getSortAttribute WRITE setSortAttribute)
public:
FindByInterface();
~FindByInterface();
void getNewProperty(json& parameter, QVariantMap& valueMap);
void setNewData(json& parameter);
void loadData(DBPlatformSpace::DAO* pDao);
bool deleteSelf();
bool saveSelf();
void saveToDao();
void toJson(json& jsonObj, bool recursive = false);
QString getName() { return _name; }
void setName(QString name) { _name = name; }
QString getDes() { return _description; }
void setDes(QString str) { _description = str; }
int getType() { return _interfaceType; }
void setType(int type) { _interfaceType = type; }
int getIsExport() { return _bIsExport; }
void setIsExport(int bExport) { _bIsExport = bExport; }
QString getParalist() { return _paraList; }
void setParalist(QString strPara) { _paraList = strPara; }
int getSortType() { return _sortType; }
void setSortType(int type) { _sortType = type; }
QString getSortAttribute() { return _sortAtrributeList; }
void setSortAttribute(QString sortAtt) { _sortAtrributeList = sortAtt; }
void setFileData(FileGenerate* generator, QStringList flag);
public:
//数据类id
int _classID = 0;
//描述
QString _description;
//接口类型
int _interfaceType = 0;
//是否输出
int _bIsExport = 0;
//参数列表
QString _paraList;
//排序类型
int _sortType = 0; //0 为升序1 为降序
//排序属性
QString _sortAtrributeList; //排序的属性id列表
};