เพิ่ม param สละสิทธในswagger
This commit is contained in:
parent
925d7fe747
commit
9eee46f316
3 changed files with 16 additions and 4 deletions
|
|
@ -353,7 +353,7 @@ namespace BMA.EHR.Placement.Service.Controllers
|
|||
}
|
||||
|
||||
[HttpPost("pass/deferment"), DisableRequestSizeLimit]
|
||||
public async Task<ActionResult<ResponseObject>> UpdatePersonDeferment()
|
||||
public async Task<ActionResult<ResponseObject>> UpdatePersonDeferment([FromForm] PersonDefermentRequest req)
|
||||
{
|
||||
var person = await _context.PlacementProfiles.FindAsync(Request.Form.ContainsKey("personalId") ? Guid.Parse(Request.Form["personalId"]) : Guid.Parse("00000000-0000-0000-0000-000000000000"));
|
||||
if (person == null)
|
||||
|
|
@ -773,7 +773,7 @@ namespace BMA.EHR.Placement.Service.Controllers
|
|||
var positionPath = await _context.PositionPaths.FirstOrDefaultAsync(x => x.Id == req.PositionPathId);
|
||||
if (positionPath == null && req.PositionPathId != null)
|
||||
return Error(GlobalMessages.DataNotFound, 404);
|
||||
|
||||
|
||||
if (req.Id == null)
|
||||
{
|
||||
var data = new PlacementEducation
|
||||
|
|
@ -808,7 +808,7 @@ namespace BMA.EHR.Placement.Service.Controllers
|
|||
if (education == null)
|
||||
return Error(GlobalMessages.EducationNotFound, 404);
|
||||
|
||||
education.EducationLevel = educationLevel;
|
||||
education.EducationLevel = educationLevel;
|
||||
education.PositionPath = positionPath;
|
||||
education.Institute = req.Institute;
|
||||
education.Degree = req.Degree;
|
||||
|
|
|
|||
|
|
@ -3,9 +3,10 @@ using Microsoft.EntityFrameworkCore;
|
|||
|
||||
namespace BMA.EHR.Placement.Service.Requests
|
||||
{
|
||||
public class PersonDisclaimRequest
|
||||
public class PersonDefermentRequest
|
||||
{
|
||||
public Guid PersonalId { get; set; }
|
||||
public string Note { get; set; }
|
||||
public FormFile? File { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
11
BMA.EHR.Placement.Service/Requests/PersonDisclaimRequest.cs
Normal file
11
BMA.EHR.Placement.Service/Requests/PersonDisclaimRequest.cs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
using BMA.EHR.Domain.Models.MetaData;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace BMA.EHR.Placement.Service.Requests
|
||||
{
|
||||
public class PersonDisclaimRequest
|
||||
{
|
||||
public Guid PersonalId { get; set; }
|
||||
public string Note { get; set; }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue