shoc-backend/SeaHaven.Services/DTOs/WorkOrderUpliftDTOs.cs
arthur.bassi b81cfbb005 feat(work-orders): WO-scoped uplift endpoints and board summary (SH-196)
Expose workorders/{id}/uplifts list/create/cancel/revoke for the SH-196 dialog, aggregate upliftSummary on board rows, and add service/controller regression tests.
2026-08-13 14:49:56 -03:00

32 lines
966 B
C#

namespace SeaHaven.Services.DTOs
{
public class WorkOrderUpliftDto
{
public int Id { get; set; }
public string Status { get; set; } = "pending";
public decimal Amount { get; set; }
public string Notes { get; set; } = "";
public DateTime? RequestedAt { get; set; }
public string? RequestedById { get; set; }
public string RequestedByName { get; set; } = "";
public DateTime? DecidedAt { get; set; }
public string DecidedByName { get; set; } = "";
public string DecisionNote { get; set; } = "";
}
public class WorkOrderUpliftListDto
{
public List<WorkOrderUpliftDto> Items { get; set; } = new();
}
public class CreateWorkOrderUpliftRequestDto
{
public decimal Amount { get; set; }
public string? Notes { get; set; }
}
public class RevokeWorkOrderUpliftRequestDto
{
public string? Reason { get; set; }
}
}