16 lines
806 B
C#
16 lines
806 B
C#
namespace TaxBaik.Domain.Interfaces;
|
|
|
|
using TaxBaik.Domain.Entities;
|
|
|
|
public interface IInquiryRepository
|
|
{
|
|
Task<int> CreateAsync(Inquiry inquiry, CancellationToken cancellationToken = default);
|
|
Task<Inquiry?> GetByIdAsync(int id, CancellationToken cancellationToken = default);
|
|
Task<(IEnumerable<Inquiry> Items, int Total)> GetPagedAsync(
|
|
int page, int pageSize, string? status = null, CancellationToken cancellationToken = default);
|
|
Task<int> CountAsync(CancellationToken cancellationToken = default);
|
|
Task<int> CountThisMonthAsync(CancellationToken cancellationToken = default);
|
|
Task<int> CountByStatusAsync(string status, CancellationToken cancellationToken = default);
|
|
Task UpdateStatusAsync(int id, string status, CancellationToken cancellationToken = default);
|
|
}
|