admin แก้ไขสมัครสอบคัดเลือก

This commit is contained in:
Kittapath 2023-04-26 03:16:49 +07:00
parent 0273a37503
commit ae60457a3e
6 changed files with 986 additions and 289 deletions

View file

@ -518,6 +518,32 @@ namespace BMA.EHR.Recurit.Exam.Service.Controllers
}
}
/// <summary>
/// get id รูปถ่าย
/// </summary>
/// <param name="candidate">รหัสรอบสมัคร</param>
/// <returns></returns>
/// <response code="200">เมื่อ get id รูปถ่ายสำเร็จ</response>
/// <response code="401">ไม่ได้ Login เข้าระบบ</response>
/// <response code="500">เมื่อเกิดข้อผิดพลาดในการทำงาน</response>
[HttpGet("profile-image/{candidate:length(36)}")]
[ProducesResponseType(StatusCodes.Status200OK)]
[ProducesResponseType(StatusCodes.Status401Unauthorized)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
public async Task<ActionResult<ResponseObject>> GetsAsyncProfileImage(string candidate)
{
try
{
var path = await _periodExamService.GetsAsyncProfileImage(candidate);
return Success(GlobalMessages.Success, path);
}
catch (Exception ex)
{
return Error(ex);
}
}
/// <summary>
/// ข้อมูล เอกสาร ผู้สมัคร
/// </summary>