Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat : 예매대기 등록 API application layer 구현 #32

Merged
merged 8 commits into from
Dec 25, 2023

Conversation

EunChanNam
Copy link
Member

📄 무엇을 개발했나요?

  • ValidationException 구현
  • WaitingBooking 생성 로직 구현
  • 예매대기 등록 서비스로직 구현

🍸 무엇을 집중적으로 리뷰해야할까요?

  • ValidationException 은 conflict 를 감수하고 필요해서 일단 구현했습니다
  • 퍼사드 클래스가까지 도입되면서 Request DTO 가 여기저기 퍼지면서 사용되는데... 지금은 간단한 로직이라 괜찮은 것 같은데 이 부분에 대해서 같이 얘기 나눠보면 좋을 것 같아요

@EunChanNam EunChanNam added the ✏️ Feat 기능 개발 label Dec 24, 2023
@EunChanNam EunChanNam added this to the 1차 스프린트 milestone Dec 24, 2023
@EunChanNam EunChanNam self-assigned this Dec 24, 2023
Copy link

🦞 Test Coverage Report

Overall Project NaN% NaN% 🟢

There is no coverage information present for the Files changed

Copy link
Contributor

Choose a reason for hiding this comment

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

생성자에서 각 부분 검증로직 잘 구현하신 것 같아요!! 꼼꼼하게 다 잘 하신듯 👍🏻

Copy link
Contributor

Choose a reason for hiding this comment

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

도메인 단위테스트도 각 예외까지 꼼꼼히 작성하신거 굿!!! 👍🏻👍🏻

WaitingBooking waitingBooking = WaitingBooking.of(user, request.seatCount(), request.seatIds());
waitingBookingRepository.save(waitingBooking);

return waitingBooking;
Copy link
Contributor

Choose a reason for hiding this comment

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

왜 반환형이 waitingBooking인지 궁금합니다!

Copy link
Contributor

Choose a reason for hiding this comment

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

아 밑에 WaitingBookingFascade 보고 바로 이해했습니다!

Copy link
Contributor

Choose a reason for hiding this comment

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

예약대기 시 UserService 를 가져와야 해서 fascade 패턴을 이용하셨군요!
너무 잘 구현하신 것 같아요 굿굿~!!

Copy link

🦞 Test Coverage Report

Overall Project NaN% NaN% 🟢

There is no coverage information present for the Files changed

@EunChanNam EunChanNam merged commit 3071f17 into dev Dec 25, 2023
2 checks passed
@ParkJuhan94
Copy link
Collaborator

퍼사드 패턴을 활용한 게 깔끔한 레이어를 유지해준 것 같아서 좋습니다!

EunChanNam added a commit that referenced this pull request Jan 15, 2024
* feat: ValidationException 정의

* fix: User 엔티티 기본 생성자 public 으로 전환

* feat: WaitingBookingErrorCode 정의

* feat: WaitingBooking 생성로직 구현

* feat: 예매대기 등록 API 요청, 응답 DTO 구현

* feat: 예매대기 엔티티 생성 서비스로직 구현

* feat: 예매대기 등록 퍼사드로직 구현
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✏️ Feat 기능 개발
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants