[Volume 4]- 4주차 과제 김평숙#134
Open
katiekim17 wants to merge 54 commits intoLoopers-dev-lab:katiekim17from
Open
Conversation
- 회원가입 시퀀스 다이어그램 (핵심 + 예외 플로우) - 내 정보 조회 시퀀스 다이어그램 (헤더 인증 포함) - 비밀번호 변경 시퀀스 다이어그램 (핵심 + 예외 플로우) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
fix : 예제 테스트 코드 오류 해결을 위한 testcontainers 버전 업
Removed the version reference for User entity in requirements.
# Conflicts: # docs/design/브랜드_상품/01-requirements.md # docs/design/좋아요/01-requirements.md
[2주차] 설계 문서 제출 - 김평숙
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Important Review skippedToo many files! This PR contains 178 files, which is 28 over the limit of 150. ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (22)
📒 Files selected for processing (178)
You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Tip Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs). 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. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📌 Summary
🧭 Context & Decision
문제 정의
선택지와 결정
🏗️Design Overview
변경 범위
주요 컴포넌트 책임
🔁 Flow Diagram
Main Flow — 쿠폰 적용 주문 생성
sequenceDiagram autonumber participant Client participant OrderController participant OrderFacade participant UserCouponService participant CouponService participant OrderService participant DB Client->>OrderController: POST /api/v1/orders (userCouponId 포함) OrderController->>OrderFacade: createOrder(userId, request) OrderFacade->>UserCouponService: use(userCouponId, userId) UserCouponService->>DB: UserCoupon 조회 (소유자/상태 검증) UserCouponService->>CouponService: getCoupon(couponId) CouponService->>DB: Coupon 조회 CouponService-->>UserCouponService: CouponDiscount (type, value) UserCouponService->>DB: UserCoupon.status = USED UserCouponService-->>OrderFacade: CouponDiscount OrderFacade->>OrderService: createOrder(orderAmount, couponDiscount) OrderService->>DB: Order 저장 (discountAmount, finalPrice 포함) DB-->>OrderService: Order OrderService-->>OrderFacade: Order OrderFacade-->>OrderController: OrderInfo OrderController-->>Client: ApiResponse<OrderInfo>Sub Flow — 쿠폰 발급
sequenceDiagram autonumber participant Client participant UserCouponController participant CouponFacade participant UserCouponService participant CouponService participant DB Client->>UserCouponController: POST /api/v1/coupons/{id}/issue UserCouponController->>CouponFacade: issueCoupon(userId, couponId) CouponFacade->>CouponService: getCoupon(couponId) CouponService->>DB: Coupon 조회 (존재/활성 검증) CouponFacade->>UserCouponService: issue(userId, coupon) UserCouponService->>DB: 중복 발급 여부 확인 UserCouponService->>DB: 잔여 수량 확인 UserCouponService->>DB: UserCoupon 저장, Coupon.remainCount-- DB-->>UserCouponService: UserCoupon UserCouponService-->>CouponFacade: UserCouponInfo CouponFacade-->>UserCouponController: UserCouponInfo UserCouponController-->>Client: ApiResponse<UserCouponInfo>