Seeding, cleanup, fix nginx proxying

This commit is contained in:
lumijiez
2025-06-09 23:54:37 +03:00
parent c2c4b739f1
commit dd7eeb9eea
32 changed files with 439 additions and 240 deletions

View File

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