mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-10-01 07:33:14 +00:00
Expose workorders/{id}/uplifts list/create/cancel/revoke for the SH-196 dialog, aggregate upliftSummary on board rows, and add service/controller regression tests.
32 lines
975 B
C#
32 lines
975 B
C#
using System.Security.Claims;
|
|
using SeaHaven.Services.DTOs;
|
|
|
|
namespace SeaHaven.Services.Interfaces
|
|
{
|
|
public interface IWorkOrderUpliftService
|
|
{
|
|
Task<IReadOnlyList<WorkOrderUpliftDto>?> ListAsync(
|
|
int workOrderId,
|
|
ClaimsPrincipal user,
|
|
CancellationToken cancellationToken);
|
|
|
|
Task<WorkOrderUpliftDto?> CreateAsync(
|
|
int workOrderId,
|
|
CreateWorkOrderUpliftRequestDto request,
|
|
ClaimsPrincipal user,
|
|
CancellationToken cancellationToken);
|
|
|
|
Task<WorkOrderUpliftDto?> CancelAsync(
|
|
int workOrderId,
|
|
int upliftId,
|
|
ClaimsPrincipal user,
|
|
CancellationToken cancellationToken);
|
|
|
|
Task<WorkOrderUpliftDto?> RevokeAsync(
|
|
int workOrderId,
|
|
int upliftId,
|
|
RevokeWorkOrderUpliftRequestDto request,
|
|
ClaimsPrincipal user,
|
|
CancellationToken cancellationToken);
|
|
}
|
|
}
|