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

예약 조회 서비스 구현 #39

Merged
merged 6 commits into from
Mar 21, 2024
Merged

Conversation

ki-met-hoon
Copy link
Owner

  • jwt 토큰으로 userId를 가져와서 해당하는 예약 데이터를 가져옴
  • 가져온 reservation 데이터가 null이면 204 no Content를 반환
  • 존재한다면 200과 함께 ReservationResponse를 반환

This closes #25

- userId로 reservation을 찾아 존재하면 ReservationResponse 형식으로 반환하고 없으면 null 값을 반환하는 getReservationByUserId method 구현
- userDetails에서 user를 찾아 해당 user의 id를 통해 reservation을 조회하는 getReservation method 구현
- 만약 reservation이 없으면 no Content 204를 반환
- 있으면 200과 함께 ReservationResponse를 반환
- userDetails에서 user를 찾아 해당 user의 id를 통해 reservation을 조회하는 getReservation method 구현
- 만약 reservation이 없으면 no Content 204를 반환
- 있으면 200과 함께 ReservationResponse를 반환
@ki-met-hoon ki-met-hoon self-assigned this Mar 21, 2024
@ki-met-hoon ki-met-hoon merged commit 8647fea into main Mar 21, 2024
1 check passed
@ki-met-hoon ki-met-hoon deleted the feature/#25-GetReservation branch March 21, 2024 16:22
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.

예약 조회 서비스 구현
1 participant