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

Reservation API 구현 #798

Open
Tracked by #621
JeongJiHwan opened this issue Nov 6, 2023 · 0 comments
Open
Tracked by #621

Reservation API 구현 #798

JeongJiHwan opened this issue Nov 6, 2023 · 0 comments

Comments

@JeongJiHwan
Copy link
Contributor

JeongJiHwan commented Nov 6, 2023

  • [GET] /reservatoins 전체 예약 내역 조회
  • [GET] /reservations/:bookinfoid 해당 도서 예약 대기수 조회
  • [POST] /reservations 예약 생성
    • process :
      1. bookInfoId 조회 및 유효성 확인
      2. 유저 확인 :
        • 대출 패널티 여부 확인
        • 대출 연체 확인
        • 2권 이상 예약 여부 확인
      3. 해당 도서 대출 가능 여부 확인 ( 대출 가능 도서의 경우 예약 불가 )
      4. 유저 기대출 도서 확인 ( 현재 대출중인 도서는 예약 불가 )
      5. 유저 기예약 도서 확인 ( 동일 도서 중복 예약 불가 )
      6. 예약 생성
  • [PATCH] /reservations/cancel 예약 취소
    • process :
      1. 유효 예약 확인 및 일반 유저의 경우 본인의 예약인지 확인
      2. status 변경 -> 2(예약 취소)
      3. 0순위 예약자가 취소한 경우, 후순위 예약자 -> 0순위 예약자로 변경 후 슬랙 알림
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 할 일
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant