123456789101112131415161718192021222324252627 |
- #ifndef _WEBAPIBASE_H_
- #define _WEBAPIBASE_H_
- #include "lhhttpapi.h"
- #include "commonDefine.h"
- class WebAPIBase
- {
- public:
- WebAPIBase() = default;
- virtual ~WebAPIBase();
- /* 初始化WebAPI */
- virtual bool initWebApi(const QString& url, const QString& serID, const QString appType, const QString& serverIP = "");
- protected:
- /* 将json的key转换成小写 */
- bool convertJsonKeyToLower(const nJson& json, nJson& result);
- protected:
- lhhttpapi* m_httpApi = nullptr;
- QString m_userToken;
- };
- #endif /* _WEBAPIBASE_H_ */
|