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

Feature: 화면 구현에 필요한 API를 추가 구현한다. #128

Merged
merged 11 commits into from
Aug 22, 2024

Conversation

seminchoi
Copy link
Contributor

⛏ 작업 사항

화면 구현에 필요한 API를 추가 구현했습니다.

📝 작업 요약

  • 공연 상세 정보 조회 API 구현
  • 회원 티켓 조회 API 구현
  • 좌석 점유를 해제하는 API 구현
  • 일정 시간이 지나면 좌석 점유를 해제하는 API 구현

💡 관련 이슈

@seminchoi seminchoi added the ✨ Feature 기능 구현 label Aug 22, 2024
@seminchoi seminchoi self-assigned this Aug 22, 2024
@@ -7,4 +7,6 @@ public interface ReservationService {
void selectSeat(String memberEmail, SeatSelectionRequest seatSelectionRequest);

void reservationTicket(String memberEmail, TicketPaymentRequest ticketPaymentRequest);

default void releaseSeat(String memberEmail, SeatSelectionRequest seatSelectionRequest) {}
Copy link
Collaborator

Choose a reason for hiding this comment

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

디폴트 메서드로 정의하신 이유가 있나요?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

수정했습니다~

private final ScheduledExecutorService scheduler = Executors.newScheduledThreadPool(5);

@Value("${ticketing.reservation.release-delay-seconds}")
private int reservationReleaseDelay;
Copy link
Collaborator

Choose a reason for hiding this comment

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

밖에서 주입하고 final로 선언하는 건 어떤가요?

@lass9436 lass9436 merged commit 8c78d88 into main Aug 22, 2024
2 checks passed
@lass9436 lass9436 deleted the feature/performance-detail branch August 22, 2024 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Feature 기능 구현
Projects
None yet
3 participants