Skip to content

[SCRUM-228] 즐길거리 전체 조회 API 구현 (#80)#100

Merged
moonxxpower merged 9 commits intodevelopfrom
SCRUM-228-즐길거리-전체-조회-API-구현
Aug 14, 2025

Hidden character warning

The head ref may contain hidden characters: "SCRUM-228-\uc990\uae38\uac70\ub9ac-\uc804\uccb4-\uc870\ud68c-API-\uad6c\ud604"
Merged

[SCRUM-228] 즐길거리 전체 조회 API 구현 (#80)#100
moonxxpower merged 9 commits intodevelopfrom
SCRUM-228-즐길거리-전체-조회-API-구현

Conversation

@moonxxpower
Copy link
Member

@moonxxpower moonxxpower commented Aug 11, 2025

✏️ 연관 이슈

#80

⛳ 작업 내용

  • 즐길거리 전체 조회 API 구현 ([GET] /courses/{courseId}/spots)
  • 코스 요약 조회 API에 즐길거리 추가
  • 관련 테스트 코드 작성

💬리뷰 요구사항

  • 총 3개(성공 2개, 실패 1개)의 시나리오에 대한 테스트 코드를 작성했습니다. 제가 놓친 부분이 있다면 말씀해주세요!

📍 참고사항

  • 코스 요약 조회 API에서 랜덤한 3개의 즐길거리를 가져옵니다.
  • 슬랙으로 말씀드렸던 리뷰 관련 수정사항은 제외했습니다.

특정 코스의 즐길거리 전체 정보를 조회하는 API를 구현했습니다. 장소의 이름, 설명, 이미지를 응답합니다.
즐길거리 전체 조회 API의 서비스 메서드들에 대하여 테스트 코드를 구현하고 테스트를 진행했습니다. (성공 2개, 실패 1개)
코스 요약 조회 API에 즐길거리 정보를 추가했습니다. 즐길거리 정보는 랜덤으로 3개 응답하며, 이름, 설명, 이미지를 포함합니다. 관련 테스트 코드에도 즐길거리 정보 검증을 추가했습니다.
@moonxxpower moonxxpower added this to the #5-sprint milestone Aug 11, 2025
@moonxxpower moonxxpower requested a review from ssggii August 11, 2025 14:37
@moonxxpower moonxxpower self-assigned this Aug 11, 2025
@ssggii ssggii moved this to In Progress in Runchuck-러닝한다이 Aug 12, 2025
ssggii added 2 commits August 13, 2025 01:12
코스 요약 조회 API에서 전체 리뷰 개수 조회 로직을 수정했습니다.
코스 요약 조회 시 최신순 리뷰 2개를 반환하도록 수정했습니다.
Copy link
Contributor

@ssggii ssggii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

리뷰 완료했습니다🙌
코스 요약 조회 API에서 수정 필요한 부분 추가로 커밋했는데 확인 부탁드립니다!

fetch join을 사용하는 메서드임을 명시하고, 기본 JPA 메서드와 구분하기 위해 findByCourseId에서 findByCourseIdWithSpotImage로 JPA 메서드명을 변경했습니다.
getSpotDetails에서는 Course 객체가 필요하지 않고 Course 존재 여부만 확인하고 있으므로 Course 존재 여부를 확인할 때 findById가 아닌 existsById를 사용하도록 변경했습니다.
코드 가독성을 위해 SpotInfoDto, SpotDetailDto 생성 로직을 서비스로부터 분리했습니다.
@moonxxpower
Copy link
Member Author

코스 요약 조회 API에서 추가 커밋하신 부분 확인했습니다!
이상 없는 것 같아서 같이 merge 하겠습니다 😄

@moonxxpower moonxxpower merged commit 9b47fde into develop Aug 14, 2025
@github-project-automation github-project-automation bot moved this from In Progress to Done in Runchuck-러닝한다이 Aug 14, 2025
@moonxxpower moonxxpower deleted the SCRUM-228-즐길거리-전체-조회-API-구현 branch August 14, 2025 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants