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;
|
|
};
|
|
}
|