Бор DAO и User Entity

This commit is contained in:
Антон
2025-08-25 17:22:03 +03:00
parent 8cb1023d68
commit f34c875ba4
6 changed files with 135 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
//
// Created by Антон on 25.08.2025.
//
#include "User.h"
namespace uad
{
const std::string& User::GetGUID() const noexcept
{
return guid_;
}
const std::string& User::GetLogin() const noexcept
{
return login_;
}
void User::SetLogin(const std::string& login)
{
login_ = login;
}
const std::string& User::GetHashedPassword() const noexcept
{
return hashed_password_;
}
}
+19
View File
@@ -0,0 +1,19 @@
#include <string>
namespace uad
{
class User
{
std::string guid_;
std::string login_;
std::string hashed_password_;
public:
[[nodiscard]] const std::string& GetGUID() const noexcept;
[[nodiscard]] const std::string& GetLogin() const noexcept;
void SetLogin(const std::string& login);
[[nodiscard]] const std::string& GetHashedPassword() const noexcept;
};
}