generated from Sithas/conan_template
Бор DAO и User Entity
This commit is contained in:
@@ -11,6 +11,11 @@ const std::string& User::GetGUID() const noexcept
|
|||||||
return guid_;
|
return guid_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void User::SetGUID(const std::string& new_guid)
|
||||||
|
{
|
||||||
|
guid_ = new_guid;
|
||||||
|
}
|
||||||
|
|
||||||
const std::string& User::GetLogin() const noexcept
|
const std::string& User::GetLogin() const noexcept
|
||||||
{
|
{
|
||||||
return login_;
|
return login_;
|
||||||
|
|||||||
+3
-1
@@ -6,10 +6,12 @@ class User
|
|||||||
{
|
{
|
||||||
std::string guid_;
|
std::string guid_;
|
||||||
std::string login_;
|
std::string login_;
|
||||||
std::string hashed_password_;
|
const std::string hashed_password_;
|
||||||
public:
|
public:
|
||||||
[[nodiscard]] const std::string& GetGUID() const noexcept;
|
[[nodiscard]] const std::string& GetGUID() const noexcept;
|
||||||
|
|
||||||
|
void SetGUID(const std::string& new_guid);
|
||||||
|
|
||||||
[[nodiscard]] const std::string& GetLogin() const noexcept;
|
[[nodiscard]] const std::string& GetLogin() const noexcept;
|
||||||
|
|
||||||
void SetLogin(const std::string& login);
|
void SetLogin(const std::string& login);
|
||||||
|
|||||||
Reference in New Issue
Block a user