feat: TaxCheck 분석 조회 및 시뮬레이션 API 구현 #5 - #7
Conversation
|
Important Review skippedNo new commits to review since the last review. ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Free Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Free Run ID: 📒 Files selected for processing (19)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughTaxCheck API를 추가하고 분석 결과를 저장·조회한다. 규칙 엔진은 급여 집계와 19% 참고 계산을 수행한다. 스냅샷 기반 시뮬레이션은 원본을 변경하지 않는다. 요청 검증, 오류 코드, 통합 테스트를 추가했다. ChangesTaxCheck 기능
Estimated code review effort: 4 (Complex) | ~60 minutes Merge Risk: 🟠 High · up to The new TaxCheck endpoints let callers choose the user identity through request values, including a default user. This could expose another user’s tax-analysis history and personal tax data or save analyses under the wrong account, so merge should wait until identity is bound to authenticated ownership. Sequence Diagram(s)sequenceDiagram
participant Client
participant TaxCheckController
participant TaxCheckService
participant TaxCheckRules
participant TaxCheckRepository
Client->>TaxCheckController: 분석 요청
TaxCheckController->>TaxCheckService: 사용자 ID와 분석 입력 전달
TaxCheckService->>TaxCheckRules: 소득·조건·급여 평가
TaxCheckRules-->>TaxCheckService: 분석 Result 반환
TaxCheckService->>TaxCheckRepository: TaxCheck와 스냅샷 저장
TaxCheckService-->>TaxCheckController: TaxCheckResponse 반환
TaxCheckController-->>Client: 분석 응답 반환
Client->>TaxCheckController: 시뮬레이션 요청
TaxCheckController->>TaxCheckService: TaxCheck ID와 대체 입력 전달
TaxCheckService->>TaxCheckRules: 원본 스냅샷과 대체 그룹 평가
TaxCheckRules-->>TaxCheckService: 시뮬레이션 Result 반환
TaxCheckService-->>Client: 저장하지 않은 TaxCheckResponse 반환
Note 🎁 Summarized by CodeRabbit FreeYour organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Essentials by visiting https://app.coderabbit.ai/settings/billing. Comment |
|
@coderabbitai review |
|
설명
사용자 입력·확인 기반 TaxCheck 1차 백엔드를 구현했습니다. 분석 결과는 세무 확정 판정이 아닌 자료 준비와 참고 계산을 위한 정보입니다.
관련 이슈
Refs #5
구현 내용
GET /api/tax-checks: 사용자별 분석 이력 조회GET /api/tax-checks/{taxCheckId}: 저장된 분석 상세 조회POST /api/tax-checks/analyze: 입력 검증, 분석 및 결과 저장POST /api/tax-checks/{taxCheckId}/simulate: 원본 스냅샷 기반 조건 변경 결과 반환null과 부족 사유로 반환하고 확인된 0원과 구분null유지검증
.\gradlew.bat test --console=plain전체 테스트 성공BUILD SUCCESSFUL in 19sdocs/TAXCHECK_IMPLEMENTATION.md의 검증 기록은 패키지 생성 당시 환경 기준입니다. 이후 작성자 로컬에서 전체 Gradle 테스트가 통과한 최신 상태를 위에 기록했습니다.리뷰 요청 사항
범위 밖 / 후속 작업
Summary by CodeRabbit