2025-06-23 10:41:33 +08:00
|
|
|
|
#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:
|
2025-06-23 18:01:09 +08:00
|
|
|
|
//数据类id
|
2025-06-23 10:41:33 +08:00
|
|
|
|
int _classID = 0;
|
2025-06-23 18:01:09 +08:00
|
|
|
|
//描述
|
2025-06-23 10:41:33 +08:00
|
|
|
|
QString _description;
|
2025-06-23 18:01:09 +08:00
|
|
|
|
//接口类型
|
2025-06-23 10:41:33 +08:00
|
|
|
|
int _interfaceType = 0;
|
2025-06-23 18:01:09 +08:00
|
|
|
|
//是否输出
|
2025-06-23 10:41:33 +08:00
|
|
|
|
int _bIsExport = 0;
|
2025-06-23 18:01:09 +08:00
|
|
|
|
//参数列表
|
2025-06-23 10:41:33 +08:00
|
|
|
|
QString _paraList;
|
2025-06-23 18:01:09 +08:00
|
|
|
|
//排序类型
|
|
|
|
|
int _sortType = 0; //0 为升序,1 为降序
|
|
|
|
|
//排序属性
|
|
|
|
|
QString _sortAtrributeList; //排序的属性id列表
|
2025-06-23 10:41:33 +08:00
|
|
|
|
};
|