2025-04-04 14:58:44 -03:00
|
|
|
|
using Domain.Entities;
|
2025-04-06 01:19:47 -03:00
|
|
|
|
using Domain.Generics;
|
2025-04-04 14:58:44 -03:00
|
|
|
|
|
|
|
|
|
|
namespace Core.Interfaces
|
|
|
|
|
|
{
|
|
|
|
|
|
public interface ICustomerDom
|
|
|
|
|
|
{
|
2025-04-12 18:51:25 -03:00
|
|
|
|
Task<ECustomer> CreateAsync(ECustomer entity);
|
2025-04-14 17:50:25 -03:00
|
|
|
|
Task<bool> UpdateAsync(ECustomer entity);
|
2025-04-06 01:35:31 -03:00
|
|
|
|
Task<PagedResult<ECustomer>> GetAllAsync(int page = 1, int pageSize = 50);
|
2025-04-04 14:58:44 -03:00
|
|
|
|
Task<ECustomer?> GetByIdAsync(int id);
|
2025-04-06 01:19:47 -03:00
|
|
|
|
Task<PagedResult<ECustomer>> SearchAsync(string? name, string? email, string? document, int page = 1, int pageSize = 50);
|
2025-04-14 17:50:25 -03:00
|
|
|
|
Task<byte[]> ExportFilteredCustomersToExcelAsync(CustomerSearchParams searchParams);
|
|
|
|
|
|
Task<bool> DeleteAsync(int id);
|
2025-04-04 14:58:44 -03:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|