shoc-backend/SeaHaven.Services/Interfaces/IFollowUpService.cs
2026-07-24 11:24:05 -03:00

25 lines
1.5 KiB
C#

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();
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);
}
}