-
Notifications
You must be signed in to change notification settings - Fork 0
feat(Order,Reservation): 주문 조회 응답 데이터 개선 및 대기열 CRUD 구현 #140
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
The head ref may contain hidden characters: "feature/#130_\uAD00\uB9AC\uC790\uC608\uC57D\uD638\uCD9C\uB85C\uC9C1"
Conversation
- order 조회 응답 데이터 구조 변경 - 관리자 측 대기열 조회,변경 로직 구현
|
Caution Review failedAn error occurred during the review process. Please try again later. Walkthrough예약 대기 리스트 및 상태 변경 기능이 대폭 리팩터링되었습니다. 예약 컨트롤러는 대기, 완료/취소 예약을 구분하여 조회하는 엔드포인트로 분리되었고, 상태 변경 엔드포인트가 POST 방식으로 변경되었습니다. Redis와 DB를 연동하여 대기자 관리가 강화되었으며, 관련 DTO 및 레포지토리, 서비스 로직이 추가 및 확장되었습니다. 주문 관련 DTO와 서비스도 그룹핑 기준이 주문 ID 중심으로 변경되었습니다. Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant ReservationController
participant ReservationService
participant WaitingRedisRepository
participant ReservationRepository
participant StoreRepository
Client->>ReservationController: GET /stores/{storeId}/waiting
ReservationController->>ReservationService: getAllWaitingUserDetails(storeId)
ReservationService->>WaitingRedisRepository: getAllWaitingWithScore(storeId)
ReservationService->>ReservationRepository: findByStore_StoreIdAndUserId(...)
ReservationService-->>ReservationController: List<WaitingUserResponse>
ReservationController-->>Client: 응답 반환
Client->>ReservationController: POST /stores/{storeId}/waiting/{userId}/status/{status}
ReservationController->>ReservationService: processEntryStatus(...)
ReservationService->>ReservationRepository: findByStore_StoreIdAndUserId(...)
ReservationService->>WaitingRedisRepository: deleteWaiting(...)
ReservationService-->>ReservationController: 처리 결과 메시지
ReservationController-->>Client: 응답 반환
Estimated code review effort4 (~90분) Possibly related PRs
Suggested labels
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
작업 요약
Issue Link
문제점 및 어려움
해결 방안
Reference
Summary by CodeRabbit
신규 기능
기능 개선
버그 수정
기타