แก้ api เพิ่มเติมการ upload image and document
This commit is contained in:
parent
86ec5de116
commit
6acd497afe
23 changed files with 4081 additions and 53 deletions
|
|
@ -56,5 +56,11 @@ namespace BMA.EHR.Recruit.Service.Models.Recruits
|
|||
public ScoreImport ScoreImport { get; set; }
|
||||
|
||||
public List<RecruitImportHistory> ImportHostories { get; set; } = new List<RecruitImportHistory>();
|
||||
|
||||
[Comment("รูป")]
|
||||
public virtual List<RecruitImportImage> RecruitImages { get; set; } = new();
|
||||
|
||||
[Comment("เอกสาร")]
|
||||
public virtual List<RecruitImportDocument> RecruitDocuments { get; set; } = new();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
19
Models/Recruits/RecruitImportDocument.cs
Normal file
19
Models/Recruits/RecruitImportDocument.cs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
using BMA.EHR.Recruit.Service.Models.Documents;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace BMA.EHR.Recruit.Service.Models.Recruits
|
||||
{
|
||||
public class RecruitImportDocument : EntityBase
|
||||
{
|
||||
[Required, Comment("Id รอบสมัครสอบ")]
|
||||
public Guid RecruitImportId { get; set; }
|
||||
|
||||
public virtual RecruitImport? RecruitImport { get; set; }
|
||||
|
||||
[Required, Comment("Id เอกสาร")]
|
||||
public Guid DocumentId { get; set; }
|
||||
|
||||
public virtual Document? Document { get; set; }
|
||||
}
|
||||
}
|
||||
19
Models/Recruits/RecruitImportImage.cs
Normal file
19
Models/Recruits/RecruitImportImage.cs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
using BMA.EHR.Recruit.Service.Models.Documents;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace BMA.EHR.Recruit.Service.Models.Recruits
|
||||
{
|
||||
public class RecruitImportImage: EntityBase
|
||||
{
|
||||
[Required, Comment("Id รอบสมัครสอบ")]
|
||||
public Guid RecruitImportId { get; set; }
|
||||
|
||||
public virtual RecruitImport? RecruitImport { get; set; }
|
||||
|
||||
[Required, Comment("Id ไฟล์รูป")]
|
||||
public Guid DocumentId { get; set; }
|
||||
|
||||
public virtual Document? Document { get; set; }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue