/
farado
/
farado-binara
Обзор
Документация
Войти
/
farado
/
farado-binara
Код
Запросы
0
Пакеты
0
Релизы
0
CI/CD
Аналитика
develop
src/common/api/result.hpp
37 строк
548 B
Ostapenko Alexey
[common][datenaro][retejo][tests] Убраны лишние include, местами в пользу forward declaration.
13 янв 2024, 16:03
13 янв 2024, 16:03
f1e4442
Код
Авторство
О чём код?
#ifndef API_RESULT_H #define API_RESULT_H #include <string> #include "common/more/uuid.h" namespace Api { struct Result final { public: enum class Type { None, NotFound, NoAccess, }; public: bool m_isSuccess = true; std::string m_reason; Type m_type = Type::None; Uuids::Uuid m_sessionUuid = Uuids::nilUuid(); unsigned m_id = { 0 }; }; struct AuthResult final { Uuids::Uuid m_sessionUuid = Uuids::nilUuid(); unsigned m_userId = 0; }; } // namespace Api #endif // API_RESULT_H