fix defect

เพิ่ม api ตาม spec ใหม่
This commit is contained in:
Suphonchai Phoonsawat 2024-01-15 10:52:39 +07:00
parent 4f32e253fd
commit 82e6ce6d11
7 changed files with 166 additions and 18 deletions

View file

@ -0,0 +1,13 @@
using System.ComponentModel.DataAnnotations;
namespace BMA.EHR.Leave.Service.DTOs.LeaveRequest
{
public class DeleteLeaveDocumentDto
{
[Required]
public Guid Id { get; set; } = Guid.Empty;
[Required]
public Guid DocId { get; set; } = Guid.Empty;
}
}

View file

@ -31,7 +31,7 @@ namespace BMA.EHR.Leave.Service.DTOs.LeaveRequest
public string LeaveDetail { get; set; } = string.Empty;
public List<string> LeaveDocument { get; set; } = new();
public List<LeaveDocumentDto> LeaveDocument { get; set; } = new();
public string LeaveDraftDocument { get; set; }

View file

@ -38,7 +38,7 @@ namespace BMA.EHR.Leave.Service.DTOs.LeaveRequest
public string LeaveDetail { get; set; } = string.Empty;
public List<string> LeaveDocument { get; set; } = new();
public List<LeaveDocumentDto> LeaveDocument { get; set; } = new();
public string LeaveDraftDocument { get; set; }

View file

@ -0,0 +1,9 @@
namespace BMA.EHR.Leave.Service.DTOs.LeaveRequest
{
public class LeaveDocumentDto
{
public Guid DocId { get; set; } = Guid.Empty;
public string Path { get; set; } = string.Empty;
}
}