f-lab-edu / f-lab-edu/spring-reservation-core

ReservationService 비즈니스 로직 구현

Open
#5 0 comments 0 reactions 1 assignee Claimed by @xxx-sj View on GitHub
area:reservation step:1-core
Dominant language
Java
Stars
0
Forks
1
PR merge metrics
No merged PRs in 30d

Description

# ReservationService – 예약 생성/취소 구현

## 📌 Summary
Slot.remaining 감소/증가를 포함한 예약 생성/취소 로직을 구현한다.

---

## 🧩 Tasks
- [ ] `ReservationRepository` 작성
- [ ] 예약 생성
- [ ] Slot 조회
- [ ] OPEN && remaining > 0 검증
- [ ] Reservation 생성
- [ ] Slot.remaining -1
- [ ] 예약 취소
- [ ] 상태 전이 검증
- [ ] Slot.remaining +1
- [ ] Slot 관련 예외 정의 (SOLD_OUT 등)
- [ ] 트랜잭션 적용 (`@Transactional`)

---

## 🔍 Notes
- 동시성 테스트는 Issue 4-4에서 진행됨
- Step 1 핵심 기능 중 하나

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.