feat(Order,Reservation): 주문 조회 응답 데이터 개선 및 대기열 CRUD 구현#142
Hidden character warning
Conversation
- order 조회 응답 데이터 구조 변경 - 관리자 측 대기열 조회,변경 로직 구현
Walkthrough두 DTO 클래스(CallGetResponseDto, ReservationGetResponseDto)에 Swagger OpenAPI의 @Schema 어노테이션이 추가되어, 각 클래스와 필드에 대한 설명 및 예시 값이 문서화되었습니다. 클래스 구조나 로직에는 변경이 없으며, 문서화 목적의 어노테이션만이 반영되었습니다. Changes
Estimated code review effort1 (~2 minutes) Suggested reviewers
✨ Finishing Touches
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 (
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (7)
nowait-app-admin-api/src/main/java/com/nowait/applicationadmin/reservation/dto/ReservationGetResponseDto.java (3)
19-20:storeId설명 용어 통일 필요이 DTO에서는 “매장 ID”로 기술했지만,
CallGetResponseDto쪽은 “가게 ID”로 표기하고 있습니다. 스웨거 문서를 읽는 소비자에게 혼란을 줄 수 있으니 동일한 용어(매장/가게)로 맞춰주세요.
25-26: 날짜·시간 예시 값에서 마이크로초·타임존 표기 고려
2025-07-22T14:45:09.492253형태는 마이크로초까지 포함돼 가독성이 떨어지고, 타임존 정보가 없어 클라이언트가 해석하기 어렵습니다.- @Schema(description = "예약 요청 시각", example = "2025-07-22T14:45:09.492253") + @Schema(description = "예약 요청 시각(ISO-8601)", example = "2025-07-22T14:45:09Z")
28-29:status필드에 Enum 값 명시
ReservationStatus(가정) enum을 그대로 노출하는 필드라면allowableValues또는enumAsRef = true옵션을 통해 가능한 값 목록을 문서에 표시해 주는 편이 Swagger UI 가독성에 도움이 됩니다.nowait-app-admin-api/src/main/java/com/nowait/applicationadmin/reservation/dto/CallGetResponseDto.java (4)
18-20:storeId설명 용어 통일 필요여기서는 “가게 ID”로 돼 있으나,
ReservationGetResponseDto에서는 “매장 ID”로 사용 중입니다. 하나로 통일하여 문서 일관성을 유지해주세요.
24-25: 날짜·시간 예시 값 개선 제안타 DTO와 동일하게 마이크로초 제거 및 타임존 포함을 권장합니다.
- @Schema(description = "예약 요청 시각", example = "2025-07-22T14:45:09.492253") + @Schema(description = "예약 요청 시각(ISO-8601)", example = "2025-07-22T14:45:09Z")
27-28:status필드 Swagger enum 노출 권장예약 상태가 enum이라면
@Schema(enumAsRef = true)등을 통해 가능한 값을 Swagger 문서에 명확히 보여주세요.
30-31:partySize설명 어휘 일관성
ReservationGetResponseDto에서는 “파티 인원”, 이쪽은 “파티 인원 수”로 다릅니다. 용어를 하나로 맞추는 편이 좋습니다.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
nowait-app-admin-api/src/main/java/com/nowait/applicationadmin/reservation/dto/CallGetResponseDto.java(1 hunks)nowait-app-admin-api/src/main/java/com/nowait/applicationadmin/reservation/dto/ReservationGetResponseDto.java(1 hunks)
작업 요약
Issue Link
문제점 및 어려움
해결 방안
Reference
Summary by CodeRabbit