123456789101112131415161718192021222324252627282930 |
- #ifndef WEBAPIBASE_H
- #define WEBAPIBASE_H
- #include <QString>
- #include "spdlog/spdlog.h"
- class lhhttpapi;
- class WebAPIBase
- {
- public:
-
- WebAPIBase();
- virtual ~WebAPIBase();
- /* 初始化WebAPI */
- bool initWebApi(const QString& url, const QString& serID, const QString appType, const QString serverIP = "");
- private:
- std::shared_ptr<spdlog::logger> m_logger = nullptr;
- lhhttpapi* m_httpApi = nullptr;
- QString m_userToken;
- };
- #endif /* WEBAPIBASE_H */
|