수익 추적 조회 API 복원

This commit is contained in:
2026-06-29 23:13:46 +09:00
parent 1e0c0b7e1c
commit f2ab78dea2
4 changed files with 21 additions and 4 deletions
@@ -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}")]