generated from Sithas/conan_template
Бор DAO и User Entity
This commit is contained in:
@@ -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_;
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user