Skip to content

7주차 미션 [루가]#16

Open
ochyeon wants to merge 41 commits into
mainfrom
luga/week7
Open

7주차 미션 [루가]#16
ochyeon wants to merge 41 commits into
mainfrom
luga/week7

Conversation

@ochyeon
Copy link
Copy Markdown
Collaborator

@ochyeon ochyeon commented May 13, 2026

📌 구현 결과

[지난 미션 피드백 수정]

  • 모든 dto -> record 방식으로 수정
  • error -> 각 도메인 별 error 파일로 분리해서 관리
  • Converter와 비즈니스 로직 분리
  • Custom Exception 활용하도록 수정
  • 모든 도메인에서 활용 가능한 페이징 DTO (Cursor 기반) 생성 후 적용
  1. 내가 진행 중인 미션 조회하기
  • Page 오프셋 기반 페이지네이션 적용하여 기존 미션 목록 조회화는 다른 메서드로 분리하여 생성
  • 식당 생성 시 미션 내용은 만들지 않은 채 테스트를 진행하였음
진행 중인 미션 조회
  1. 내가 생성한 리뷰들 조회하기
  • 식당 및 지역 생성 코드 작성
  • 지역 및 식당 1개씩 생성 후 테스트 진행
  • Slice, Cursor 기반 페이징 적용
  • id 내림차순
리뷰 조회 by id - star 내림차순 리뷰 조회 by stars
  1. 검증 어노테이션 붙혀 검증하기
  • RequestBody 부분에 @Valid 적용
  • GeneralExceptionAdvice에 Valid 검증 실패 시 처리 코드 추가
image

❓ 리뷰 요청

🤔 질문

💬 기타 공유 사항

ochyeon and others added 30 commits April 9, 2026 06:01
…(record 사용, 엔드포인트 수정 및 스웨거 명세 추가)
Copy link
Copy Markdown
Collaborator

@ywkim1m ywkim1m left a comment

Choose a reason for hiding this comment

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

미션 수고하셨습니다!

Copy link
Copy Markdown
Collaborator

@KateteDeveloper KateteDeveloper left a comment

Choose a reason for hiding this comment

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

미션 수고 많으셨습니다!!

Copy link
Copy Markdown
Member

@yangjiae12 yangjiae12 left a comment

Choose a reason for hiding this comment

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

수고하셨습니다!

Comment on lines +69 to +73
case "stars" -> slice = reviewRepository.findByUserOrderByGrade(
user,
cursorGrade,
PageRequest.of(0, size)
);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

별점 정렬에서는 같은 별점의 리뷰가 여러 개 있을 수 있어, grade만 cursor로 사용하면 데이터가 누락될 수 있습니다. grade + id를 함께 cursor로 사용하는 방식이 더 안정적일 것 같습니다.


Slice<Review> slice;

switch (sort.toLowerCase()) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

sort가 null이면 NPE가 발생할 수 있어, 기본값을 지정하거나 null 검증을 추가하면 좋을 것 같습니다!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants