Conversation
This reverts commit 4d2fca4.
This reverts commit 284a8a1.
- UserController, 불필요 DTO 11개, UserService 메서드 삭제 - User 엔티티에서 onboardingCompleted 필드/메서드 완전 제거 - AuthService 신규 유저 초기 status를 ACTIVE로 변경 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- MyProfileResponse에서 mannerTemperature 제거 - UserSettings 필드 교체 (4개 → 6개 알림 설정 필드) - UserTendencyScore/History 필드 리네이밍 (score1~6 → principle/reason/individual/change/inner/ideal) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- PhilosopherType, TierCode, NoticeType, VoteSide, ActivityType enum 생성 - Notice 엔티티 및 NoticeRepository 생성 - 마이페이지 API Response/Request DTO 8개 생성 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- MyProfileResponse에서 mannerTemperature 제거 - UserSettings 필드 교체 (4개 → 6개 알림 설정 필드) - UserTendencyScore/History 필드 리네이밍 (score1~6 → principle/reason/individual/change/inner/ideal) - @column(name) 매핑 제거, DB 컬럼명도 새 필드명으로 통일 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- VoteRepository에 사용자 투표 기록 조회 쿼리 추가 (offset 페이지네이션, voteSide 필터) - MypageService.getBattleRecords() 구현 (Vote → Battle 조인, BattleOptionLabel ↔ VoteSide 매핑) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- PerspectiveComment/LikeRepository에 사용자 활동 조회 쿼리 추가 - MypageService.getContentActivities() 구현 (COMMENT/LIKE 타입별 분기) - Battle, BattleOption 배치 조회로 N+1 방지 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- VoteRepository에 recap 통계용 쿼리 추가 (사후투표 수, 입장변경 수, 전체 투표 조회) - BattleTagRepository에 배치 태그 조회 쿼리 추가 - MypageService.getRecap() preferenceReport 구현 - totalParticipation: 총 투표 참여 수 - opinionChanges: 사전/사후 투표 옵션 불일치 수 - battleWinRate: 사후 투표 중 다득표 옵션 선택 비율 - favoriteTopics: 참여 배틀의 태그별 빈도 상위 4개 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- VoteQueryService 생성: 투표 기록 조회, 참여 통계, 승률 계산 로직 캡슐화 - PerspectiveQueryService 생성: 댓글/좋아요 활동 조회 로직 캡슐화 - BattleQueryService 생성: 배틀/옵션 배치 조회, 태그 빈도 집계 캡슐화 - MypageService에서 타 도메인 Repository 의존 모두 제거, QueryService만 호출 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
user/entity/Notice, NoticeType, NoticeRepository를 삭제하고 notice 도메인의 NoticeService를 호출하도록 변경. noticeId 타입을 Long → UUID로 통일. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- user.puml: onboarding_completed 제거, nickname/character_url 추가, SUSPENDED 상태 추가, tendency score 필드명 변경 - user-ops.puml: SUSPENDED 상태 추가, user_settings 필드 실제 엔티티와 일치하도록 교체 - UserServiceTest 8건, MypageServiceTest 12건 신규 추가 - HomeServiceTest 2건 추가 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- HomeServiceTest: 한글 메서드명 → 영문 + @DisplayName - NoticeServiceTest: 한글 메서드명 → 영문 + @DisplayName Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
onboardingCompleted필드 User 엔티티 + AuthService에서 완전 제거PATCH /me/profile— 프로필 수정GET /me/mypage— 마이페이지 요약 (프로필 + 철학자 + 티어)GET /me/recap— 상세 리캡 (성향 점수 + preferenceReport)GET /me/battle-records— 배틀 기록 조회 (offset 페이지네이션, voteSide 필터)GET /me/content-activities— 댓글/좋아요 활동 조회GET/PATCH /me/notification-settings— 알림 설정 조회/수정GET /me/notices,GET /me/notices/{noticeId}— 공지/이벤트 조회TODO (이후 작업)
Test plan
./gradlew test전체 테스트 통과 확인 (총 26건)Closes #36, Closes #40
🤖 Generated with Claude Code