-
Notifications
You must be signed in to change notification settings - Fork 0
Feature: public code 추가 #291
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
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughStore 식별 체계를 storeId(Long)에서 publicCode(String, base62 12자)로 확장/전환. Store 엔티티/레포지토리에 publicCode 필드와 조회 메서드 추가. User API의 메뉴/주문 컨트롤러·서비스는 publicCode 기반으로 변경. Admin API 생성 요청/응답에 publicCode 반영. 공통 토큰 유틸 추가. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant U as User Client
participant MC as MenuController
participant MS as MenuService
participant SR as StoreRepository
participant MR as MenuRepository
U->>MC: GET /v1/menus/all-menus/stores/{publicCode}
MC->>MS: getAllMenusByStoreId(publicCode)
MS->>SR: findByPublicCodeAndDeletedFalse(publicCode)
SR-->>MS: Store (storeId, publicCode)
MS->>MR: findAllByStoreId(store.storeId) [+images...]
MR-->>MS: Menus
MS-->>MC: MenuReadResponse
MC-->>U: 200 OK
sequenceDiagram
autonumber
participant U as User Client
participant OC as OrderController
participant OS as OrderService
participant SR as StoreRepository
participant OR as OrderRepository
U->>OC: POST /v1/orders/create/{publicCode}/{tableId}
OC->>OS: createOrder(publicCode, tableId, payload, sessionId)
OS->>SR: findByPublicCodeAndDeletedFalse(publicCode)
SR-->>OS: Store
OS->>OR: findByStore_PublicCodeAndTableIdAndSessionId(publicCode, tableId, sessionId)
OR-->>OS: Existing orders (if any)
OS->>OR: Save order & items (if not duplicate)
OR-->>OS: Persisted entities
OS-->>OC: OrderCreateResponseDto
OC-->>U: 201 Created
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested reviewers
Tip 🔌 Remote MCP (Model Context Protocol) integration is now available!Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats. 📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. 📒 Files selected for processing (10)
✨ Finishing Touches
🧪 Generate unit tests
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. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
작업 요약
Issue Link
#290
문제점 및 어려움
해결 방안
Reference
Summary by CodeRabbit