// SPDX-FileCopyrightText: 2023 Yury Gubich // SPDX-License-Identifier: GPL-3.0-or-later #pragma once #include "post.h" namespace Request { class Login : public Post { Q_OBJECT public: Login (const QString& login, const QString& password, const QUrl& baseUrl); protected: void onSuccess (const QVariantMap& data) override; void onError (const QString& error, const std::optional& data) override; static const std::map tokensStructure; }; }