Skip to content

Conversation

eclipse021
Copy link

@eclipse021 eclipse021 commented Jun 1, 2025

✅ 실습 체크리스트

  • 이론 학습을 완료하셨나요?
  • 미션 요구사항을 모두 이해하셨나요?
  • 실습을 수행하기 위한 공부를 완료하셨나요?
  • 실습 요구사항을 모두 완료하셨나요?

✅ 컨벤션 체크리스트

  • 디렉토리 구조 컨벤션을 잘 지켰나요?
  • pr 제목을 컨벤션에 맞게 작성하였나요?
  • pr에 해당되는 이슈를 연결하였나요?(중요)
  • 적절한 라벨을 설정하였나요?
  • 파트장에게 code review를 요청하기 위해 reviewer를 등록하였나요?
  • 닉네임/main 브랜치의 최신 상태를 반영하고 있는지 확인했나요?(매우 중요!)

📌 주안점

@eclipse021 eclipse021 requested a review from m020202 June 1, 2025 13:49
@eclipse021 eclipse021 self-assigned this Jun 1, 2025
Comment on lines +72 to +73
List<MissionResponseDTO.MissionDTO> userMissionDTOList = userMissionList.stream()
.map(MissionConverter::toMissionDTO).collect(Collectors.toList());
Copy link
Contributor

Choose a reason for hiding this comment

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

이거 리스트로 안 받고, Page로 받으면 밑에서 따로 Page 관련 값들 세팅 안 해도 돼서 더 효율적일 것 같아요 !

Page<MissionResponseDTO.MissionDTO> userMissionDTOPage = userMissionList.map(MissionConverter::toMissionDTO);

Comment on lines +46 to +55
Mission mission = missionRepository.findById(missionId).orElseThrow(
() -> new GeneralException(ErrorStatus.MISSION_NOT_FOUND)
);

User user = userRepository.findById(userId).orElseThrow(
() -> new GeneralException(ErrorStatus.USER_NOT_FOUND)
);

UserMission userMission = userMissionRepository.findByUserAndMission(user, mission).orElseThrow(
() -> new GeneralException(ErrorStatus.USERMISSION_NOT_FOUND)
Copy link
Contributor

Choose a reason for hiding this comment

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

엔티티 대신 storeId, memberId로 조회하는 게 더 효율적일 것 같아요 !

findByUserIdAndMissionid(userId, missionId)

() -> new GeneralException(ErrorStatus.RESTAURANT_NOT_FOUND)
);

Page<Mission> missionPage = missionRepository.findAllByRestaurant(restaurant, PageRequest.of(page, 10));
Copy link
Contributor

Choose a reason for hiding this comment

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

페이징 기본 크기가 10이긴 한데, 프론트에서 혹시 다른 값을 요청할 수도 있으니 size 값도 받는 게 좋을 것 같아요 !

m020202
m020202 previously approved these changes Jun 3, 2025
@m020202
Copy link
Contributor

m020202 commented Jun 3, 2025

밤하늘 고생하셨습니다 !
리뷰 한 번 확인해주시고 바로 머지해주시면 됩니다 !

@eclipse021 eclipse021 changed the title [9주차/밤하늘] 워크북 제출합니다. [9,10주차/밤하늘] 워크북 제출합니다. Jun 18, 2025
@m020202
Copy link
Contributor

m020202 commented Jun 24, 2025

밤하늘 고생하셨습니다 !
요즘은 로그인 과정도 인프라의 일종으로 봐서 굳이 구현하지 않고, AWS 코그니토 같은 인증 서비스도 많이 사용하더라구요 !
관련해서 알아보시면 좋을 것 같아요 ~

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants