api ค้นหาผู้เกี่ยวข้องคำสั่ง

This commit is contained in:
DESKTOP-2S5P7D1\Windows 10 2023-09-05 20:24:15 +07:00
parent e7c71b2e15
commit fa8dfc51e4
4 changed files with 68 additions and 3 deletions

View file

@ -233,7 +233,7 @@ namespace BMA.EHR.Command.Service.Controllers
}
}
}
catch
{
@ -3424,6 +3424,31 @@ namespace BMA.EHR.Command.Service.Controllers
}
}
/// <summary>
/// แสดงชื่อผู้เกี่ยวข้องกับคำสั่ง
/// </summary>
/// <returns></returns>
/// <response code="200">เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ</response>
/// <response code="401">ไม่ได้ Login เข้าระบบ</response>
/// <response code="500">เมื่อเกิดข้อผิดพลาดในการทำงาน</response>
[HttpPost("search/profile/command")]
[ProducesResponseType(StatusCodes.Status200OK)]
[ProducesResponseType(StatusCodes.Status401Unauthorized)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
public async Task<ActionResult<ResponseObject>> GetCommandProfileAsync([FromBody] SearchProfileCommandRequest req)
{
try
{
var data = await _repository.GetCommandProfileAsync(req.CommandTypeId, req.Year, req.Posno);
return Success(data);
}
catch
{
throw;
}
}
#endregion
}
}