Skip to content

Conversation

@oroi2009
Copy link
Contributor

@oroi2009 oroi2009 commented Aug 13, 2025

🔍 관련 이슈


✅ 작업 분류

  • 버그 수정
  • 신규 기능
  • 프로젝트 구조 변경
  • 코드 리팩토링
  • 기능 수정

✨ 작업 내용

  • 메뉴 상세 조회 API 구현

👥 전달사항


✅ 체크리스트

  • 코드가 컴파일 및 빌드됨
  • 모든 테스트가 통과함
  • 관련 문서가 업데이트됨
  • 코드 리뷰가 수행됨
  • 커밋 메시지를 확인함

📸 스크린샷

image

oroi2009 and others added 30 commits July 12, 2025 01:16
✨ feat : 맞춤 추천용 메뉴 목록 조회 API
👷 CI : CI/CD 파이프라인 구축
💚 CI: CI/CD 파이프라인 설정 수정
💚 CI. cd 실행 시, 환경변수가 적용되지 않는 문제 해결
✨  feat : 특정 메뉴를 파는 가게 조회 API 구현
@frombunny frombunny self-requested a review August 13, 2025 06:14
Comment on lines 11 to 12
@Min(value=1, message="quantity는 1 이상이어야 합니다.")
private int quantity;
Copy link
Member

Choose a reason for hiding this comment

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

수량은 필요없을 것 같은딩!

menu.getCostPrice(),
menu.getSalePrice(),
store.getName(),
quantity
Copy link
Member

Choose a reason for hiding this comment

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

수량도 받지 말고 menu에서 받아오면 좋을 것 같구, 할인율도 계산해서 반환하면 좋을 것 같아요!
store는 위에서 Store store = menu.getStore(); 이렇게 할 필요 없이 menu.getStore().getName() 이렇게 받읍시다!

Comment on lines 82 to 93
public List<MenuDetailsRes> details(MenuDetailsListReq menus) {
Map<Long, Integer> menuMap = menus.getMenus().stream()
.collect(Collectors.toMap(MenuDetailsReq::getMenuId, MenuDetailsReq::getQuantity));

List<Menu> menuList = menuRepository.findAllById(menuMap.keySet());

if (menuList.isEmpty()) {throw new MenuNotFoundException();}

return menuList.stream()
.map(menu -> MenuDetailsRes.from(menu, menuMap.get(menu.getId())))
.toList();
}
Copy link
Member

Choose a reason for hiding this comment

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

이거 중첩으로 request 받을 필요없이 이런 식으로 받는 게 더 깔끔할 듯??
public class MenuIdsReq {
@notempty(message = "menuIds 리스트가 비어있습니다.")
private List<@NotNull(message = "menuId는 null일 수 없습니다.") Long> menuIds;
}

Copy link
Member

@frombunny frombunny left a comment

Choose a reason for hiding this comment

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

굿굿 ㅎㅎㅎㅎㅎ 병합합시다!

@oroi2009 oroi2009 merged commit fd1831e into main Aug 14, 2025
2 checks passed
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.

✨ feat : 메뉴 상세 조회 API

3 participants