Conversation
Feature/13 user
* feat : google login 구현 완료 (ios 구현 중)
* feat : google login 구현 완료 * fix : user hard delete * feat : apple 로그인 구현 및 ddl-auto -> update 변경
* 약관 엔티티 생성 및 연관관계 설정 * 회원가입에 약관 저장 로직 추가 * 서버에서 idToken을 받아올 수 없으므로 단순히 이메일로 accessToken을 받아오는 test API 추가
* feat : 파티 엔티티 정의 * feat : 파티 dto * feat : party dto 정의 * feat : party entity 정의 * feat : 파티 생성,수정,삭제, 조회 partycontroller partyservice partyrepository * feat : 거리 계산 클래스 * refactor : 불필요한 코드 삭제 * refactor : token provider로 유저 아이디 추출하도록 변경 * Fix: 파티 기능 버그 수정 * docs : 파티 swagger 문서 추가
* feat : 마이페이지 활성 파티 조회 * docs : 유저 기능 swagger 문서화
|
Caution Review failedThe pull request is closed. 📝 Walkthrough개요이 PR은 사용자 마이페이지에서 참여 중인 파티를 조회할 수 있는 새로운 엔드포인트와 관련 기능들을 추가합니다. UserController에 getActiveParties 엔드포인트를 추가하고 UserService에 조회 로직을 구현하며, PartyParticipantRepository에 쿼리 메서드를 추가합니다. 동시에 PartyController의 update/delete 엔드포인트 추가, Party 엔티티 업데이트, 그리고 일부 요청 데이터 검증 규칙 변경이 포함됩니다. 시퀀스 다이어그램sequenceDiagram
participant Client
participant UserController
participant UserService
participant PartyParticipantRepository
participant Database
participant PartyResponse as PartyResponse<br/>(Mapper)
Client->>UserController: GET /api/v1/user/parties/active<br/>(`@AuthenticationPrincipal` userId)
activate UserController
UserController->>UserService: getActiveParties(userId)
deactivate UserController
activate UserService
UserService->>PartyParticipantRepository: findActivePartiesByUserId<br/>(userId, partyStatus, participantStatus)
deactivate UserService
activate PartyParticipantRepository
PartyParticipantRepository->>Database: SELECT PartyParticipant<br/>WHERE userId=? AND partyStatus=?<br/>AND participantStatus=?
deactivate PartyParticipantRepository
Database-->>PartyParticipantRepository: List<PartyParticipant>
PartyParticipantRepository-->>UserService: List<PartyParticipant>
activate UserService
loop 각 PartyParticipant에 대해
UserService->>PartyParticipantRepository: countByPartyIdAndStatus<br/>(partyId, status)
activate PartyParticipantRepository
PartyParticipantRepository->>Database: SELECT COUNT(*)<br/>WHERE partyId=? AND status=?
Database-->>PartyParticipantRepository: currentParticipants count
deactivate PartyParticipantRepository
PartyParticipantRepository-->>UserService: int currentParticipants
UserService->>PartyResponse: from(party, currentParticipants,<br/>isHost, participantStatus)
activate PartyResponse
PartyResponse-->>UserService: PartyResponse
deactivate PartyResponse
end
UserService-->>UserController: List<PartyResponse>
deactivate UserService
activate UserController
UserController-->>Client: ResponseEntity<List<PartyResponse>><br/>(200 OK)
deactivate UserController
관련 PR
✨ Finishing touches
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (10)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This was referenced Jan 2, 2026
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 by CodeRabbit
릴리스 노트
새로운 기능
개선 사항
✏️ Tip: You can customize this high-level summary in your review settings.