fix bug upload
api ออกคำสั่ง ส่ง inbox and noti
This commit is contained in:
parent
9ff5725be4
commit
c99cb5344e
11 changed files with 13843 additions and 4 deletions
|
|
@ -880,7 +880,7 @@ namespace BMA.EHR.Command.Service.Controllers
|
|||
Summary = "Upload a file",
|
||||
Description = "Upload a file using multipart/form-data",
|
||||
OperationId = "UploadCommandCoverAsync"
|
||||
//Tags = new[] { "File" }
|
||||
//Tags = new[] { "File" }
|
||||
)]
|
||||
[ProducesResponseType(StatusCodes.Status200OK)]
|
||||
[ProducesResponseType(StatusCodes.Status401Unauthorized)]
|
||||
|
|
@ -941,7 +941,7 @@ namespace BMA.EHR.Command.Service.Controllers
|
|||
Summary = "Upload a file",
|
||||
Description = "Upload a file using multipart/form-data",
|
||||
OperationId = "UploadCommandAttachmentAsync"
|
||||
//Tags = new[] { "File" }
|
||||
//Tags = new[] { "File" }
|
||||
)]
|
||||
[ProducesResponseType(StatusCodes.Status200OK)]
|
||||
[ProducesResponseType(StatusCodes.Status401Unauthorized)]
|
||||
|
|
@ -1119,6 +1119,33 @@ namespace BMA.EHR.Command.Service.Controllers
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ออกคำสั่ง
|
||||
/// </summary>
|
||||
/// <param name="orderId">Record Id ของคำสั่ง</param>
|
||||
/// <returns></returns>
|
||||
/// <response code="200">เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ</response>
|
||||
/// <response code="401">ไม่ได้ Login เข้าระบบ</response>
|
||||
/// <response code="500">เมื่อเกิดข้อผิดพลาดในการทำงาน</response>
|
||||
[HttpPut("execute/{orderId}")]
|
||||
[ProducesResponseType(StatusCodes.Status200OK)]
|
||||
[ProducesResponseType(StatusCodes.Status401Unauthorized)]
|
||||
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
|
||||
public async Task<ActionResult<ResponseObject>> ExecuteCommandAsync(Guid orderId)
|
||||
{
|
||||
try
|
||||
{
|
||||
await _repository.ExecuteCommandAsync(orderId);
|
||||
|
||||
return Success();
|
||||
}
|
||||
catch
|
||||
{
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue