База для ручки PostUserMedicationsExecutor.h

This commit is contained in:
2026-01-09 13:45:16 +03:00
parent a3e69b65fb
commit c79ec099e9
16 changed files with 47 additions and 47 deletions
+6 -6
View File
@@ -11,19 +11,19 @@ class MySQLUserDAO : public IUserDAO
public:
explicit MySQLUserDAO(mysqlx::Session& session);
std::string Create(const user& created_user) override;
std::string Create(const user_dto& created_user) override;
std::optional<user> GetByUUID(const std::string& uuid) override;
std::optional<user_dto> GetByUUID(const std::string& uuid) override;
std::optional<user> GetByLogin(const std::string& login) override;
std::optional<user_dto> GetByLogin(const std::string& login) override;
std::pair<bool, std::vector<user>> GetAll(size_t limit, size_t offset) override;
std::pair<bool, std::vector<user_dto>> GetAll(size_t limit, size_t offset) override;
bool Update(const user& u) override;
bool Update(const user_dto& u) override;
bool Delete(const std::string& uuid) override;
private:
std::optional<user> GetSingleUserBySQLResult(mysqlx::SqlResult&& sql_result);
std::optional<user_dto> GetSingleUserBySQLResult(mysqlx::SqlResult&& sql_result);
};
}