generated from Sithas/conan_template
29 lines
570 B
C++
29 lines
570 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
#include <vector>
|
|
#include <optional>
|
|
|
|
#include "../entities/User.h"
|
|
|
|
namespace uad
|
|
{
|
|
class IUserDAO
|
|
{
|
|
public:
|
|
virtual std::string Create(const User& created_user) = 0;
|
|
|
|
virtual std::optional<User> GetByUUID(const std::string& uuid) = 0;
|
|
|
|
virtual std::optional<User> GetByLogin(const std::string& login) = 0;
|
|
|
|
virtual std::pair<bool, std::vector<User>> GetAll(size_t limit, size_t offset) = 0;
|
|
|
|
virtual bool Update(const User& u) = 0;
|
|
|
|
virtual bool Delete(const std::string& uuid) = 0;
|
|
|
|
virtual ~IUserDAO() = default;
|
|
};
|
|
}
|