feat: 세금 시뮬레이션 API 개발 (Phase 1.3)

- LoanService에 taxSimulation() 메서드 추가
- LoanController에 taxSimulation() 액션 추가
- GET /api/v1/loans/tax-simulation 라우트 등록
- Swagger LoanTaxSimulation 스키마 및 엔드포인트 문서화
- 법인세/소득세 비교 분석 데이터 제공

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-01-22 22:47:59 +09:00
parent 7162fc2b46
commit f089843e1e
4 changed files with 198 additions and 0 deletions

View File

@@ -122,4 +122,15 @@ public function interestReport(int $year): JsonResponse
return ApiResponse::handle('message.fetched', $result);
}
/**
* 세금 시뮬레이션
*/
public function taxSimulation(LoanCalculateInterestRequest $request): JsonResponse
{
$validated = $request->validated();
$result = $this->loanService->taxSimulation($validated['year']);
return ApiResponse::handle('message.fetched', $result);
}
}