2026-04-28 18:55:14 -05:00
|
|
|
using SeaHaven.Services.DTOs;
|
|
|
|
|
|
|
|
|
|
namespace SeaHaven.Services.Interfaces
|
|
|
|
|
{
|
|
|
|
|
public interface IFollowUpService
|
|
|
|
|
{
|
|
|
|
|
Task<FollowUpDTO?> GetFollowUpByIdAsync(int id);
|
|
|
|
|
Task<FollowUpDTO?> GetFollowUpByIdWithDetailsAsync(int id);
|
|
|
|
|
Task<IEnumerable<FollowUpDTO>> GetAllFollowUpsAsync();
|
|
|
|
|
Task<IEnumerable<FollowUpDTO>> GetFollowUpsByWorkOrderIdAsync(int workOrderId);
|
|
|
|
|
Task<PagedResult<FollowUpDTO>> GetFollowUpsPagedAsync(int page, int pageSize, string? search = null, string? status = null);
|
|
|
|
|
Task<FollowUpDTO> CreateFollowUpAsync(CreateFollowUpDTO dto, string userId);
|
|
|
|
|
Task<FollowUpDTO> UpdateFollowUpAsync(int id, UpdateFollowUpDTO dto, string userId);
|
|
|
|
|
Task DeleteFollowUpAsync(int id, string userId);
|
|
|
|
|
Task<bool> FollowUpExistsAsync(int id);
|
|
|
|
|
Task<int> GetTotalFollowUpCountAsync();
|
2026-07-24 17:35:34 -03:00
|
|
|
|
|
|
|
|
Task<PagedResult<FollowUpListRowDTO>> GetFollowUpListAsync(int page, int pageSize, string? search, string? status, CancellationToken cancellationToken);
|
|
|
|
|
Task<FollowUpDetailDTO?> GetFollowUpDetailAsync(int id, CancellationToken cancellationToken);
|
|
|
|
|
Task<int> CreateOpenFollowUpAsync(FollowUpCreateRequestDTO dto, string userId, CancellationToken cancellationToken);
|
|
|
|
|
Task UpdateFollowUpFieldsAsync(int id, FollowUpUpdateRequestDTO dto, CancellationToken cancellationToken);
|
|
|
|
|
Task<bool> SetFollowUpStatusAsync(int id, string status, CancellationToken cancellationToken);
|
|
|
|
|
Task<bool> RemoveFollowUpAsync(int id, CancellationToken cancellationToken);
|
2026-04-28 18:55:14 -05:00
|
|
|
}
|
|
|
|
|
}
|