// // Created by wuyiz on 2023/6/19. // #ifndef AICSKNOWLEDGEBASE_HTTPCLIENT_H #define AICSKNOWLEDGEBASE_HTTPCLIENT_H #include #include #include class HttpClient : public QObject { Q_OBJECT public: explicit HttpClient(QQmlApplicationEngine &engine, QObject *parent = nullptr); Q_INVOKABLE void doGetRequest(QObject* object, QString callback); private: QQmlApplicationEngine &engine; }; #endif //AICSKNOWLEDGEBASE_HTTPCLIENT_H