| 12345678910111213141516171819202122232425262728293031323334 |
- #ifndef FROMWEBAPI_H
- #define FROMWEBAPI_H
- #include "spdlog/spdlog.h"
- #include "lhhttpapi.h"
- #include "nlohmann/json.hpp"
- #define nJson nlohmann::json
- class FromEQM
- {
- public:
- FromEQM();
- ~FromEQM();
- /* 初始化WebAPI */
- bool initWebApi(const QString& url,const QString& serverIP,const QString& serID);
- bool test();
- bool test2();
- private:
- private:
- // std::shared_ptr<spdlog::logger> m_logger = nullptr;
- lhhttpapi* m_httpApi = nullptr;
- QString m_userToken;
- };
- #endif /* FROMWEBAPI_H */
|