Почти завершенная регистрация

This commit is contained in:
Антон
2025-08-30 07:40:53 +03:00
parent 07a9bbf9ff
commit eea5e42573
6 changed files with 84 additions and 23 deletions
+9 -6
View File
@@ -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);
};
}