ปรับ api ให้สามารถ upload เอกสารประกอบได้หลายไฟล์

This commit is contained in:
Suphonchai Phoonsawat 2024-01-09 11:26:36 +07:00
parent 1f7b5cd21f
commit 0f5c9a2dcf
10 changed files with 1356 additions and 23 deletions

View file

@ -0,0 +1,12 @@
using BMA.EHR.Domain.Models.Base;
using BMA.EHR.Domain.Models.Documents;
namespace BMA.EHR.Domain.Models.Leave.Requests
{
public class LeaveDocument : EntityBase
{
public Document Document { get; set; }
public LeaveRequest LeaveRequest { get; set; }
}
}

View file

@ -29,7 +29,7 @@ namespace BMA.EHR.Domain.Models.Leave.Requests
[Required, Comment("รายละเอียดการลา")]
public string LeaveDetail { get; set; } = string.Empty;
public Document? LeaveDocument { get; set; }
public List<LeaveDocument> LeaveDocument { get; set; } = new();
public Document? LeaveDraftDocument { get; set; }