Seeding, cleanup, fix nginx proxying
This commit is contained in:
@@ -1,20 +0,0 @@
|
||||
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