diff --git a/src/presentation/DigitalData.TaskFlow.API/Models/CloseWorkflowReqBody.cs b/src/presentation/DigitalData.TaskFlow.API/Models/CloseWorkflowReqBody.cs new file mode 100644 index 0000000..243fb8b --- /dev/null +++ b/src/presentation/DigitalData.TaskFlow.API/Models/CloseWorkflowReqBody.cs @@ -0,0 +1,26 @@ +using System.Text.Json.Serialization; + +namespace DigitalData.TaskFlow.API.Models; + +/// +/// +/// +public class CloseWorkflowReqBody +{ + /// + /// + /// + [JsonPropertyName("closing_method_id")] + public int ClosingMethodId { get; init; } + + /// + /// + /// + public string? Comment { get; init; } + + /// + /// + /// + [JsonPropertyName("rejection_reason_id")] + public byte? RejectionReasonId { get; init; } +} diff --git a/src/presentation/DigitalData.TaskFlow.API/Models/CloseWorkflowReqResponse.cs b/src/presentation/DigitalData.TaskFlow.API/Models/CloseWorkflowReqResponse.cs new file mode 100644 index 0000000..129c2b1 --- /dev/null +++ b/src/presentation/DigitalData.TaskFlow.API/Models/CloseWorkflowReqResponse.cs @@ -0,0 +1,14 @@ +using DigitalData.TaskFlow.Application.Features.Workflows.Commands; + +namespace DigitalData.TaskFlow.API.Models; + +/// +/// +/// +public class CloseWorkflowReqResponse +{ + /// + /// + /// + public List Meta { get; init; } = []; +}