2026-08-11 14:52:02 -03:00
|
|
|
|
using System.Security.Claims;
|
2026-07-13 13:13:00 -03:00
|
|
|
|
using SeaHaven.Services.DTOs;
|
|
|
|
|
|
|
|
|
|
|
|
namespace SeaHaven.Services.Interfaces
|
|
|
|
|
|
{
|
|
|
|
|
|
public interface IWorkOrderCommentService
|
|
|
|
|
|
{
|
2026-08-11 14:52:02 -03:00
|
|
|
|
Task<IReadOnlyList<WorkOrderCommentDto>?> GetCommentsAsync(int workOrderId, ClaimsPrincipal user);
|
|
|
|
|
|
Task<WorkOrderCommentDto> AddCommentAsync(
|
|
|
|
|
|
int workOrderId,
|
|
|
|
|
|
WorkOrderCommentCreateDto request,
|
|
|
|
|
|
ClaimsPrincipal user,
|
|
|
|
|
|
string? actorId,
|
|
|
|
|
|
string? documentUrl = null);
|
2026-07-24 18:12:03 -03:00
|
|
|
|
Task<WorkOrderCommentDto> UpdateCommentAsync(
|
|
|
|
|
|
int workOrderId,
|
|
|
|
|
|
int commentId,
|
|
|
|
|
|
WorkOrderCommentCreateDto request,
|
2026-08-11 14:52:02 -03:00
|
|
|
|
ClaimsPrincipal user,
|
2026-07-24 18:28:44 -03:00
|
|
|
|
string? actorId);
|
2026-07-13 13:13:00 -03:00
|
|
|
|
}
|
|
|
|
|
|
}
|