generated from Sithas/conan_template
Доработка интерфейса ДАО
This commit is contained in:
@@ -14,6 +14,8 @@ public:
|
||||
|
||||
virtual std::optional<User> GetByGUID(std::string guid) = 0;
|
||||
|
||||
virtual std::optional<User> GetByLogin(std::string login) = 0;
|
||||
|
||||
virtual std::vector<User> GetAll() = 0;
|
||||
|
||||
virtual bool Update(const User& u) = 0;
|
||||
|
||||
@@ -21,6 +21,11 @@ optional<User> MySQLUserDAO::GetByGUID(string guid)
|
||||
return nullopt;
|
||||
}
|
||||
|
||||
std::optional<User> MySQLUserDAO::GetByLogin(std::string login)
|
||||
{
|
||||
return nullopt;
|
||||
}
|
||||
|
||||
vector<User> MySQLUserDAO::GetAll()
|
||||
{
|
||||
vector<User> users {};
|
||||
|
||||
@@ -14,6 +14,8 @@ public:
|
||||
|
||||
std::optional<User> GetByGUID(std::string guid);
|
||||
|
||||
std::optional<User> GetByLogin(std::string login);
|
||||
|
||||
std::vector<User> GetAll();
|
||||
|
||||
bool Update(const User& u);
|
||||
|
||||
Reference in New Issue
Block a user