Rebadge the rest of the files

This commit is contained in:
lumijiez
2025-06-03 18:24:40 +03:00
parent 1b6f69fcf9
commit 6a675ac111
77 changed files with 5931 additions and 0 deletions

View 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);
}