-
Notifications
You must be signed in to change notification settings - Fork 0
refactor: 기존 storeId publicCode로 변경 #292
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. Walkthrough컨트롤러와 서비스 전반에서 식별자를 Long storeId에서 String publicCode로 전환했다. 서비스 구현은 publicCode로 Store를 조회한 뒤 storeId로 결제 정보를 찾도록 변경되었고, StoreRepository 의존성이 추가되었다. 파라미터 유효성 검사와 예외 처리 대상이 publicCode로 교체되었다. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant Client
participant Controller as StorePaymentController
participant Service as StorePaymentService
participant StoreRepo as StoreRepository
participant PayRepo as StorePaymentRepository
Client->>Controller: GET /store-payment/{publicCode}
Controller->>Service: getStorePaymentByStoreId(publicCode)
Service->>Service: validate publicCode (empty/null -> throw)
Service->>StoreRepo: findByPublicCode(publicCode)
alt Store not found
StoreRepo-->>Service: empty
Service-->>Controller: throw StoreNotFoundException
Controller-->>Client: 404
else Store found
StoreRepo-->>Service: Store(id)
Service->>PayRepo: findByStoreId(id)
PayRepo-->>Service: Optional<StorePayment>
Service->>Service: map to StorePaymentReadDto
Service-->>Controller: Optional<StorePaymentReadDto>
Controller-->>Client: 200 or 404 (based on Optional)
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes 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 (3)
✨ 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 (
|
작업 요약
기존 storeId publicCode로 변경
Issue Link
#290
문제점 및 어려움
해결 방안
Reference
Summary by CodeRabbit