수익 추적 조회 API 복원
This commit is contained in:
@@ -41,11 +41,15 @@ public class RevenueTrackingController(RevenueTrackingService service) : Control
|
||||
[HttpGet("{id:int}")]
|
||||
public async Task<IActionResult> GetById(int id)
|
||||
{
|
||||
return StatusCode(StatusCodes.Status501NotImplemented, new
|
||||
try
|
||||
{
|
||||
error = "미구현",
|
||||
message = "RevenueTrackingService.GetByIdAsync 구현이 필요합니다."
|
||||
});
|
||||
var revenue = await service.GetByIdAsync(id);
|
||||
return revenue is null ? NotFound(new { error = "조회 실패", message = "해당 청구를 찾을 수 없습니다." }) : Ok(revenue);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
return StatusCode(500, new { error = "조회 실패", message = ex.Message });
|
||||
}
|
||||
}
|
||||
|
||||
[HttpGet("client/{clientId:int}")]
|
||||
|
||||
Reference in New Issue
Block a user