This commit is contained in:
@@ -41,16 +41,11 @@ public class RevenueTrackingController(RevenueTrackingService service) : Control
|
||||
[HttpGet("{id:int}")]
|
||||
public async Task<IActionResult> GetById(int id)
|
||||
{
|
||||
try
|
||||
return StatusCode(StatusCodes.Status501NotImplemented, new
|
||||
{
|
||||
// GetByIdAsync가 없으면 GetByClientIdAsync를 사용하거나 별도 구현 필요
|
||||
// 임시로 구현 - 실제로는 repository에 GetByIdAsync 추가 필요
|
||||
return Ok(new { message = "조회됨" });
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
return StatusCode(500, new { error = "조회 실패", message = ex.Message });
|
||||
}
|
||||
error = "미구현",
|
||||
message = "RevenueTrackingService.GetByIdAsync 구현이 필요합니다."
|
||||
});
|
||||
}
|
||||
|
||||
[HttpGet("client/{clientId:int}")]
|
||||
|
||||
Reference in New Issue
Block a user