WebAPIBase.h 489 B

123456789101112131415161718192021222324252627282930
  1. #ifndef WEBAPIBASE_H
  2. #define WEBAPIBASE_H
  3. #include <QString>
  4. #include "spdlog/spdlog.h"
  5. class lhhttpapi;
  6. class WebAPIBase
  7. {
  8. public:
  9. WebAPIBase();
  10. virtual ~WebAPIBase();
  11. /* 初始化WebAPI */
  12. bool initWebApi(const QString& url, const QString& serID, const QString appType, const QString serverIP = "");
  13. private:
  14. std::shared_ptr<spdlog::logger> m_logger = nullptr;
  15. lhhttpapi* m_httpApi = nullptr;
  16. QString m_userToken;
  17. };
  18. #endif /* WEBAPIBASE_H */