generated from Sithas/conan_template
Бор DAO и User Entity
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
#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> GetByGUID(std::string guid) = 0;
|
||||
|
||||
virtual std::vector<User> GetAll() = 0;
|
||||
|
||||
virtual bool Update(const User& u) = 0;
|
||||
|
||||
virtual bool Delete(std::string id) = 0;
|
||||
|
||||
virtual ~IUserDAO() = default;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user