generated from Sithas/conan_template
Рабочая сборка с третьей ручкой
This commit is contained in:
+6
-6
@@ -4,22 +4,22 @@
|
||||
#include <vector>
|
||||
#include <optional>
|
||||
|
||||
#include "../entities/User.h"
|
||||
#include "../entities/user.h"
|
||||
|
||||
namespace uad
|
||||
{
|
||||
class IUserDAO
|
||||
{
|
||||
public:
|
||||
virtual std::string Create(const User& created_user) = 0;
|
||||
virtual std::string Create(const user& created_user) = 0;
|
||||
|
||||
virtual std::optional<User> GetByUUID(const std::string& uuid) = 0;
|
||||
virtual std::optional<user> GetByUUID(const std::string& uuid) = 0;
|
||||
|
||||
virtual std::optional<User> GetByLogin(const std::string& login) = 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 std::pair<bool, std::vector<user>> GetAll(size_t limit, size_t offset) = 0;
|
||||
|
||||
virtual bool Update(const User& u) = 0;
|
||||
virtual bool Update(const user& u) = 0;
|
||||
|
||||
virtual bool Delete(const std::string& uuid) = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user