#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 m_logger = nullptr; lhhttpapi* m_httpApi = nullptr; QString m_userToken; }; #endif /* FROMWEBAPI_H */