ToEQMDataBase.h 582 B

123456789101112131415161718192021222324252627
  1. #ifndef TOEQMDATABASE_H
  2. #define TOEQMDATABASE_H
  3. #include "spdlog/spdlog.h"
  4. #include "lhhttpapi.h"
  5. #include "GlobalInfo.h"
  6. class ToEQMDataBase
  7. {
  8. public:
  9. ToEQMDataBase();
  10. ~ToEQMDataBase();
  11. /* 初始化WebAPI */
  12. bool initWebApi(const QString& url,const QString& serverIP,const QString& serID);
  13. /* 写入算法信息,写入tAction表 */
  14. bool writeAlgorithmInfo(QVector<AlgorithmInfo>& vecInfo);
  15. private:
  16. std::shared_ptr<spdlog::logger> m_logger = nullptr;
  17. lhhttpapi* m_httpApi = nullptr;
  18. QString m_userToken;
  19. };
  20. #endif /* TOEQMDATABASE_H */