generated from Sithas/conan_template
Почти завершенная регистрация
This commit is contained in:
@@ -10,16 +10,19 @@ class MySQLUserDAO : public IUserDAO
|
||||
public:
|
||||
explicit MySQLUserDAO(mysqlx::Session& session);
|
||||
|
||||
std::string Create(const User& created_user);
|
||||
std::string Create(const User& created_user) override;
|
||||
|
||||
std::optional<User> GetByGUID(std::string guid);
|
||||
std::optional<User> GetByGUID(std::string guid) override;
|
||||
|
||||
std::optional<User> GetByLogin(std::string login);
|
||||
std::optional<User> GetByLogin(std::string login) override;
|
||||
|
||||
std::vector<User> GetAll();
|
||||
std::vector<User> GetAll() override;
|
||||
|
||||
bool Update(const User& u);
|
||||
bool Update(const User& u) override;
|
||||
|
||||
bool Delete(std::string id);
|
||||
bool Delete(std::string id) override;
|
||||
|
||||
private:
|
||||
std::optional<User> GetSingleUserBySQLResult(mysqlx::SqlResult&& sql_result);
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user