Skip to content

6주차 미션 [워니]#10

Open
ywkim1m wants to merge 10 commits into
mainfrom
wony/week6
Open

6주차 미션 [워니]#10
ywkim1m wants to merge 10 commits into
mainfrom
wony/week6

Conversation

@ywkim1m
Copy link
Copy Markdown
Collaborator

@ywkim1m ywkim1m commented May 6, 2026

📌 구현 결과

  • 리뷰 작성
  • 진행중, 진행 완료한 미션
  • 홈 화면
  • 마이 페이지
image

💬 기타 공유 사항

테스트 후 컨트롤러 수정하겠습니다...
지역별 미션-홈화면

@ochyeon
Copy link
Copy Markdown
Collaborator

ochyeon commented May 7, 2026

수고하셨습니다!

@KateteDeveloper
Copy link
Copy Markdown
Collaborator

미션 수고하셨습니다!!

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 +26 to +35
return MyPageResponse.builder()
.memberId(member.getId())
.nickname(member.getNickname())
.email(member.getEmail())
.phoneNumber(member.getPhoneNumber())
.isPhoneVerified(member.getIsPhoneVerified())
.point(member.getPoint())
.reviewCount(reviewCount)
.build();
}
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.

Service에서 엔티티를 dto로 직접 변환하고 있는데 이 로직은 Converter로 분리하면 좋을 것 같습니다

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.

현재 MemberResDTO, MemberReqDTO라는 빈 클래스 파일을 만들어두고, 정작 실제 응답인 MyPageResponse는 별도 파일로 분리해서 사용하고 있습니다. 이렇게 되면 도메인이 커질수록 dto 패키지에 파일이 수십 개로 늘어나 관리 효율이 떨어집니다. 이 파일에 dto를 모아서 작성하면 좋을 거 같아요!

return missions.map(MissionConverter::toResponse);
}

private final MissionRepository missionRepository;
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.

모든 private final 필드는 클래스 최상단에 선언해주세요!

public Page<HomeMissionResponse> getHomeMissions(Long locationId, Pageable pageable) {

Page<Mission> missions =
missionRepository.findByLocation(locationId, pageable);
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.

현재 서비스에서는 페이징 처리를 해주고 계신데, 반환되는 dto에는 메타 데이터를 담을 곳이 없습니다! 모든 도메인에서 페이징 응답을 일관되게 처리할 수 잇도록 공통 페이징 응답 DTO를 만들어 관리하는 건 어떨까요?

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