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

주문 업데이트 수정 및 API 구현 #50

Merged
merged 27 commits into from
Dec 23, 2023
Merged

주문 업데이트 수정 및 API 구현 #50

merged 27 commits into from
Dec 23, 2023

Conversation

Limgayoung
Copy link
Owner

@Limgayoung Limgayoung commented Sep 2, 2023

주문 업데이트 기능 구현

  1. MemberInfo
    • member와 zigzagToken으로 구성되어 있다.
    • memberService에서 createMemberInfo로 만들 수 있다.
  2. OrderService
    1. getOrdersFromZigzag
      • zigzagOrderService의 zigzagOrderListRequester로 주문 정보를 받아온다.
      • 가장 최근 저장된 주문 이후 건부터 받아온다. (없으면 처음부터)
    2. orderUpdate
      • 배송준비중인 order list를 만든다.
      • orderRepository에 저장되어 있지 않은 order list를 만든다.
      • 완료된 order 상태를 변환하고 새로운 order를 저장한다.
  3. ProductService
    • 저장되지 않은 product들을 stream을 이용해 찾는다.
    • zigzagProductService의 ZigzagProductImagesUrlRequester를 이용해 productId로 image url을 가져온다.
    • product list를 만들어 saveAll한다.
  4. OptionService
    • 저장되지 않은 option을 추출한 후 saveAll한다.

주문 업데이트 API - OrderController

  • updateZigzagOrder
    1. memberInfo를 만든다.
    2. orderService를 이용해 주문 정보를 받아온다.
    3. product와 option, order를 update한다.

@Limgayoung Limgayoung self-assigned this Sep 2, 2023
@Limgayoung Limgayoung added the feat New feature or request label Sep 2, 2023
zigzag에서 변수명 변경된 것 반영
product 검색 시 endTime 삭제, request 시 productId 제외한 변수들 불필요
@Limgayoung Limgayoung merged commit 77d9af3 into dev Dec 23, 2023
1 check passed
@Limgayoung Limgayoung deleted the order-product branch December 25, 2023 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant