admin แก้ไขสมัครสอบคัดเลือก
This commit is contained in:
parent
0273a37503
commit
ae60457a3e
6 changed files with 986 additions and 289 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue