You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
601 B
22 lines
601 B
#pragma once |
|
|
|
#include "domain/entities/Item.h" |
|
#include <optional> |
|
#include <string> |
|
#include <string_view> |
|
#include <vector> |
|
|
|
namespace nxl::autostore::application { |
|
|
|
class IItemRepository |
|
{ |
|
public: |
|
virtual ~IItemRepository() = default; |
|
virtual domain::Item::Id_t save(const domain::Item& item) = 0; |
|
virtual std::optional<domain::Item> findById(std::string_view id) = 0; |
|
virtual std::vector<domain::Item> findByUser(std::string_view userId) = 0; |
|
virtual std::vector<domain::Item> findAll() = 0; |
|
virtual void remove(std::string_view id) = 0; |
|
}; |
|
|
|
} // namespace nxl::autostore::application
|