20 lines
851 B
C#
20 lines
851 B
C#
using YY.Admin.Core.Entity;
|
|
|
|
namespace YY.Admin.Core.Services;
|
|
|
|
public interface ICustomerService
|
|
{
|
|
Task<CustomerPageResult> PageAsync(int pageNo, int pageSize,
|
|
string? customerCode = null, string? customerName = null,
|
|
string? status = null, string? customerRegion = null,
|
|
CancellationToken ct = default);
|
|
|
|
Task<MesXslCustomer?> GetByIdAsync(string id, CancellationToken ct = default);
|
|
Task<bool> AddAsync(MesXslCustomer customer, CancellationToken ct = default);
|
|
Task<bool> EditAsync(MesXslCustomer customer, CancellationToken ct = default);
|
|
Task<bool> DeleteAsync(string id, CancellationToken ct = default);
|
|
Task<bool> UpdateStatusAsync(string id, string status, CancellationToken ct = default);
|
|
}
|
|
|
|
public record CustomerPageResult(List<MesXslCustomer> Records, long Total, int PageNo, int PageSize);
|