Rebadge the rest of the files
This commit is contained in:
20
src/Imprink.Domain/Repositories/ICategoryRepository.cs
Normal file
20
src/Imprink.Domain/Repositories/ICategoryRepository.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using Imprink.Domain.Entities.Product;
|
||||
|
||||
namespace Imprink.Domain.Repositories;
|
||||
|
||||
public interface ICategoryRepository
|
||||
{
|
||||
Task<Category?> GetByIdAsync(Guid id, CancellationToken cancellationToken = default);
|
||||
Task<Category?> GetByIdWithSubCategoriesAsync(Guid id, CancellationToken cancellationToken = default);
|
||||
Task<Category?> GetByIdWithProductsAsync(Guid id, CancellationToken cancellationToken = default);
|
||||
Task<IEnumerable<Category>> GetAllAsync(CancellationToken cancellationToken = default);
|
||||
Task<IEnumerable<Category>> GetActiveAsync(CancellationToken cancellationToken = default);
|
||||
Task<IEnumerable<Category>> GetRootCategoriesAsync(CancellationToken cancellationToken = default);
|
||||
Task<IEnumerable<Category>> GetSubCategoriesAsync(Guid parentCategoryId, CancellationToken cancellationToken = default);
|
||||
Task<Category> AddAsync(Category category, CancellationToken cancellationToken = default);
|
||||
Task<Category> UpdateAsync(Category category, CancellationToken cancellationToken = default);
|
||||
Task DeleteAsync(Guid id, CancellationToken cancellationToken = default);
|
||||
Task<bool> ExistsAsync(Guid id, CancellationToken cancellationToken = default);
|
||||
Task<bool> HasSubCategoriesAsync(Guid categoryId, CancellationToken cancellationToken = default);
|
||||
Task<bool> HasProductsAsync(Guid categoryId, CancellationToken cancellationToken = default);
|
||||
}
|
||||
Reference in New Issue
Block a user