Skip to content
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

쿠폰 선물할 메시지를 전달받는다. #21

Conversation

this-is-spear
Copy link
Owner

Subscription

  • 회원은 쿠폰을 선물하기 위한 메시지 템플릿을 전달받습니다.

Description

쿠폰 전달 API 시퀀스 다이어그램은 다음과 같습니다.

sequenceDiagram
 actor Sender
 participant GiftCouponMessageController
 participant GiftCouponByMessageUseCase

Sender ->> GiftCouponMessageController: sendGiftableCouopns(coupon id)
GiftCouponMessageController ->> GiftCouponByMessageUseCase: sendGiftableCouopns(member id, coupon id)
GiftCouponByMessageUseCase ->> MemberAdapter: findMember
MemberAdapter ->> GiftCouponByMessageUseCase: 
GiftCouponByMessageUseCase ->> CouponAdapter: findCoupon
CouponAdapter ->> GiftCouponByMessageUseCase: 
GiftCouponByMessageUseCase ->> ValidateGiftableAdapter: isGiftable
ValidateGiftableAdapter ->> GiftCouponByMessageUseCase: 

GiftCouponByMessageUseCase ->> WrapGiftAdapter: wrap gift
WrapGiftAdapter ->> GiftCouponByMessageUseCase: 

GiftCouponByMessageUseCase ->> GiftCouponMessageController: return gift
GiftCouponMessageController ->> Sender: return gift message

Loading

URL 등록 방식을 고려할 때 다음 문제를 고려해야 합니다.

  • 쿠폰 등록 API가 GET 방식이어야 한다.
  • 버저닝 등에 의해서 변경되는 URL에 대비해야 한다.

@this-is-spear this-is-spear merged commit 37f9245 into main May 21, 2024
3 checks passed
@this-is-spear this-is-spear deleted the 5-전화번호를-입력해-쿠폰을-나눠줄-수-있게-하고-싶음-1 branch June 4, 2024 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

전화번호를 입력해 쿠폰을 나눠줄 수 있게 하고 싶음!!
1 participant