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 : 파티 검색 추가
* feature & fix : 유저 최근 검색어 API 구현
* feat : stomp import 및 인증 설정 진행 * feat : 웹소켓 subscribe, unsubscribe, disconnect 시 유저의 실시간 채팅방 접속 정보 수정 * feat : chatMessage 엔티티 추가 * feat : 채팅 전송, 채팅이력 조회 API 생성 * fix : 채팅 기능 고도화 * fix : minor change * fix : 웹소켓에서 오류 발생 시 에러 메시지 사용자에게 보냄 * fix : 참여 요청 거절 수정
* feat : 유저 프로필 이미지 수정, 삭제 * fix : 유저 프로필 수정, 삭제
* feat : 거리 계산 쿼리 PartySearchRepository로 분리 (거리순, 페이징, 검색) * feat : 거리 계산 API 구현
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthrough이 풀 리퀘스트는 파티 검색 기능에 지리적 좌표(위도, 경도) 기반 거리 정렬 기능을 추가합니다. PartyController의 검색 API가 선택적 위도/경도 파라미터를 수용하도록 확장되고, 새로운 PartySearchRepository가 거리 기반 쿼리 메서드를 제공하도록 도입됩니다. PartySearchService는 이 파라미터들을 수락하고 DistanceCalculator를 사용하여 각 검색 결과에 거리를 계산하여 첨부합니다. 또한 UserController의 프로필 이미지 엔드포인트 경로와 파라미터 바인딩이 업데이트되며, UserResDto에 userProfileImage 필드가 추가됩니다. Sequence DiagramsequenceDiagram
participant Client
participant PartyController
participant PartySearchService
participant PartySearchRepository
participant DistanceCalculator
participant Database
Client->>PartyController: GET /api/parties/search?q=...&lat=...&lon=...
PartyController->>PartySearchService: searchParty(q, category, page, size, lat, lon)
alt lat/lon provided
PartySearchService->>PartySearchRepository: findByTitleContainingWithDistance(q, lat, lon, pageable)
PartySearchRepository->>Database: Execute native query with distance ORDER BY
Database-->>PartySearchRepository: Return paginated results
PartySearchRepository-->>PartySearchService: Page<Party>
loop For each Party result
PartySearchService->>DistanceCalculator: Calculate distance
DistanceCalculator-->>PartySearchService: Distance value
PartySearchService->>PartySearchService: Attach distance to result
end
else lat/lon not provided
PartySearchService->>PartySearchRepository: findByTitleContaining(q, pageable)
PartySearchRepository->>Database: Execute basic query
Database-->>PartySearchRepository: Return paginated results
PartySearchRepository-->>PartySearchService: Page<Party>
end
PartySearchService-->>PartyController: PartyQueryListResponse
PartyController-->>Client: APIResponse<PartyQueryListResponse>
Possibly related PRs
Suggested labels
✨ Finishing touches
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (7)
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 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.
🔗 관련 PR
Summary by CodeRabbit
New Features
Improvements
✏️ Tip: You can customize this high-level summary in your review settings.