123456789101112131415161718192021222324252627282930313233 |
- #ifndef CNODEDATASERVICE_H
- #define CNODEDATASERVICE_H
- #include <CCanvas/CMind.h>
- class CNodeDataService
- {
- public:
- CNodeDataService(QObject *parent = nullptr);
- //添加节点
- int AddCNodeData(const CNodeData &cNodeData);
- bool SaveCNodeData(const CNodeData &cNodeData);
- //更新节点
- bool UpdateCNodeData(const CNodeData &cNodeData);
- /*根据项目id查询节点信息*/
- bool QueryCNodeDataById(CNodeData &cNodeData, int id);
- //查询所有
- bool QueryAll(QList<CNodeData> &cNodeDataList, int projectId, int evalType);
- //查询所有生效节点
- bool QueryAllValid(QList<CNodeData> &cNodeDataList, int projectId, int evalType);
- //根据工程id获取到节点信息
- bool QueryAllByProjectId(QList<CNodeData> &cNodeDataList, int projectId);
- //根据id删除
- bool DeleteCNodeDataById(int id);
- //删除所有
- bool DeleteAllNodeData();
- };
- #endif // CNODEDATASERVICE_H
|