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 문서 추가
Co-authored-by: marshmallowing <yuin1111801@naver.com>
* feat: 파티 참여, 거절, 종료 알림 연결 * feat: 채팅 알림 단체/개인 구분 * fix : 마이페이지에서 참여중, 호스트 파티 조회시 최신순으로 조회되도록 수정 (#98) * hotfix : native query 문법 오류 해결 * hotfix : 카테고리 조건 추가 * hotfix : Param 이름 추가 * hotfix : PartyCategory를 String으로 받아 index로 조회하지 못하게 방지 * hotfix : 메시지 스키마 변경 * feat : 파티 생성시 이미지 없을 경우 디폴트 이미지 반환하도록 수정 (#100) --------- Co-authored-by: marshmallowing <yuin1111801@naver.com> Co-authored-by: Donghun Won <wonhun1225@gmail.com> Co-authored-by: Wonjae Lim <yyytir777@gmail.com>
* feat : 파티 생성시 이미지 없을 경우 디폴트 이미지 반환하도록 수정 * feat : 파티 목록 이미지 디폴트 필드 추가
* feat : 파티 생성시 이미지 없을 경우 디폴트 이미지 반환하도록 수정 * feat : 파티 목록 이미지 디폴트 필드 추가 * fix : 파티 썸네일 이미지 주입되도록 value값 수정
* fix : 파티 요청 채팅방 반환하도록 수정
* feat: 파티장 리마인드 알림 * feat: 파티서비스에 적용 --------- Co-authored-by: marshmallowing <yuin1111801@naver.com>
* feat : 파티 탈퇴, 파티 모집 완료 * feat : 파티 목록 조회시 페이지네이션
* Feat : 파티 상세 조회시 host 위치 반환값에 추가 (#117) * feature : 일대일 채팅방 조회 API * feat : 그룹 채팅방 조회 추가 * fix : 예외 처리 추가 --------- Co-authored-by: Donghun Won <wonhun1225@gmail.com>
* fix: PartyController API 경로 슬래시 누락 수정 * fix: 위도/경도 검증 로직 및 null 체크 개선 * docs: Swagger API 문서 보완 * feat: 파티 조회 시 거리 정보 반환 기능 추가
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthrough이 PR은 정당 관련 API 엔드포인트에 위치 기반 거리 계산 기능을 추가하고, 메서드 시그니처를 정리하며, Swagger 문서화를 확장합니다. PartyController의 경로 매핑이 수정되고(선행 슬래시 추가), UserController와 PartyController의 엔드포인트가 선택적 위도/경도 파라미터를 받도록 변경되며, PartyCardResponse에는 사용자 좌표를 받아 거리를 계산하는 새로운 팩토리 메서드가 추가됩니다. PartyService는 위치 검증 로직을 단순화하고, 거리 계산을 중앙화하며, null 거리값 처리를 개선합니다. Sequence Diagram(s)sequenceDiagram
participant Client
participant UserController
participant UserService
participant PartyCardResponse
participant DistanceCalculator
participant Database
Client->>UserController: GET /user/hosting-parties?latitude=X&longitude=Y
UserController->>UserService: getHostingParties(userId, latitude, longitude)
UserService->>Database: Query hosting parties by userId
Database-->>UserService: List<Party>
loop for each Party
UserService->>PartyCardResponse: from(party, currentParticipants, userLat, userLon)
PartyCardResponse->>DistanceCalculator: calculate distance
DistanceCalculator-->>PartyCardResponse: distance value
PartyCardResponse-->>UserService: PartyCardResponse with distance
end
UserService-->>UserController: List<PartyCardResponse> with distances
UserController-->>Client: HTTP 200 + PartyCardResponse list
Possibly related PRs
Suggested labels
✨ Finishing touches
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (5)
✏️ Tip: You can disable this entire section by setting 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 |
Merged
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.