Feat Backend ERP 1

This commit is contained in:
2026-01-07 11:34:25 -03:00
parent 81aea41e69
commit fdb221d0fa
29 changed files with 1364 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
using SIGCM.Domain.Entities;
namespace SIGCM.Domain.Interfaces;
public interface IProductRepository
{
Task<IEnumerable<Product>> GetAllAsync();
Task<IEnumerable<Product>> GetByCompanyIdAsync(int companyId);
Task<Product?> GetByIdAsync(int id);
Task<int> CreateAsync(Product product);
Task UpdateAsync(Product product);
Task<IEnumerable<Company>> GetAllCompaniesAsync(); // Helper para no crear un repo solo para esto por ahora
Task<IEnumerable<ProductBundle>> GetBundleComponentsAsync(int parentProductId);
Task AddComponentToBundleAsync(ProductBundle bundle);
Task RemoveComponentFromBundleAsync(int bundleId, int childProductId);
}