Publish from private repository
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
namespace MyOffice.Data.Repositories.Item;
|
||||
|
||||
using MyOffice.Data.Models.Items;
|
||||
|
||||
public interface IItemRepository
|
||||
{
|
||||
List<Item> GetAll(Guid userId);
|
||||
Task<List<Item>> GetAllAsync(Guid userId, CancellationToken cancellationToken = default);
|
||||
List<Item> GetByCategory(Guid userId, Guid categoryId);
|
||||
Task<List<Item>> GetByCategoryAsync(Guid userId, Guid categoryId, CancellationToken cancellationToken = default);
|
||||
Item? GetByGlobal(Guid userId, Guid globalItemId);
|
||||
Task<Item?> GetByGlobalAsync(Guid userId, Guid globalItemId, CancellationToken cancellationToken = default);
|
||||
bool Add(Item item);
|
||||
Task<bool> AddAsync(Item item, CancellationToken cancellationToken = default);
|
||||
bool Update(Item item);
|
||||
Task<bool> UpdateAsync(Item item, CancellationToken cancellationToken = default);
|
||||
List<Item> Find(Guid userId, string term, int limit);
|
||||
Task<List<Item>> FindAsync(Guid userId, string term, int limit, CancellationToken cancellationToken = default);
|
||||
}
|
||||
Reference in New Issue
Block a user