Skip to content

#237 [Refactor] 관점 옵션 표시 및 필터 응답 구조 개선#238

Merged
jucheonsu merged 3 commits into
devfrom
refactor/#237
May 21, 2026
Merged

#237 [Refactor] 관점 옵션 표시 및 필터 응답 구조 개선#238
jucheonsu merged 3 commits into
devfrom
refactor/#237

Conversation

@jucheonsu
Copy link
Copy Markdown
Member

@jucheonsu jucheonsu commented May 20, 2026

#️⃣ 연관된 이슈

📝 작업 내용

♻️ Refactor

내용 파일
관점 목록 필터를 optionId 기반으로 변경 PerspectiveController.java, PerspectiveService.java
관점 목록/상세/댓글 응답의 A/B 표시값을 옵션 title 기반으로 정리 PerspectiveService.java, PerspectiveCommentService.java, BattleOptionDisplay.java
사용자 배틀 상세 옵션 label과 투표 통계 이미지 응답 구조 정리 BattleConverter.java, BattleOptionResponse.java, VoteStatsResponse.java, BattleVoteServiceImpl.java, OptionStatResponse.java

📚 Docs

내용 파일
관점 목록 필터 파라미터 및 옵션 표시 응답 예시 갱신 docs/api-specs/perspectives-api.md
투표 통계 이미지 URL 및 내 투표 option label 응답 설명 추가 docs/api-specs/vote-api.md

🧪 Test

내용 파일
관점 상세/댓글 응답에서 옵션 title 표시 검증 테스트 추가 PerspectiveServiceTest.java, PerspectiveCommentServiceTest.java
OAuth 테스트를 현재 AuthService/LoginRequest 생성자 시그니처에 맞게 보정 OAuthServiceTest.java

📌 공유 사항

  1. GET /api/v1/battles/{battleId}/perspectives 필터는 optionId를 사용합니다.
  2. VoteStatsResponse.options[]는 철학자 이미지 리소스 리다이렉트 URL을 imageUrl로 반환합니다.
  3. 검증 : ./gradlew.bat compileJava 성공

✅ 체크리스트

  • Reviewer에 팀원들을 선택했나요?
  • Assignees에 본인을 선택했나요?
  • 컨벤션에 맞는 Type을 선택했나요?
  • Development에 이슈를 연동했나요?
  • Merge 하려는 브랜치가 올바르게 설정되어 있나요?
  • 컨벤션을 지키고 있나요?
  • 로컬에서 실행했을 때 에러가 발생하지 않나요?
  • 팀원들에게 PR 링크 공유를 했나요?

📸 스크린샷

  • N/A (API 응답 구조 변경)

💬 리뷰 요구사항

  1. 관점 필터 파라미터를 optionId로 고정한 API 계약이 프론트 연동에 적절한지 확인 부탁드립니다.

@jucheonsu jucheonsu requested review from HYH0804 and si-zero May 20, 2026 20:05
@jucheonsu jucheonsu self-assigned this May 20, 2026
@jucheonsu jucheonsu added the ♻️ Refactor (리팩토링) 코드 구조 개선 및 성능 최적화를 위해 사용합니다. label May 20, 2026
@jucheonsu jucheonsu marked this pull request as ready for review May 20, 2026 20:08
@jucheonsu jucheonsu linked an issue May 20, 2026 that may be closed by this pull request
5 tasks
@jucheonsu jucheonsu changed the title [Refactor] 관점 옵션 표시 및 필터 응답 구조 개선 #237 [Refactor] 관점 옵션 표시 및 필터 응답 구조 개선 May 20, 2026
@jucheonsu jucheonsu merged commit dfb2761 into dev May 21, 2026
@jucheonsu jucheonsu deleted the refactor/#237 branch May 21, 2026 04:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

♻️ Refactor (리팩토링) 코드 구조 개선 및 성능 최적화를 위해 사용합니다.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

♻️ Refactor: 관점 옵션 표시 및 필터 응답 구조 개선

1 participant