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

chore: 구매 링크 api 수정 #33

Merged
merged 3 commits into from
Jan 31, 2024
Merged

chore: 구매 링크 api 수정 #33

merged 3 commits into from
Jan 31, 2024

Conversation

yoonsseo
Copy link
Member

PR

PR 요약

  • 구매 링크 api 수정

변경된 점

  • 기존 구매 링크만 보내던 방식에서
    구매 링크와 이미지를 같이 보내고, 품절 여부를 확인할 수 있도록 수정
  • 엔티티에 구매 링크를 컬럼으로 저장해두었는데
    추후 엔티티를 분리하는 등의 리팩토링을 거치면 좋을 것 같다

이슈 번호


List<PurchaseInfo> purchaseList = new ArrayList<>();
PurchaseInfo purchaseInfo1 = PurchaseInfo.builder().link(fragrance.getLink1()).build();
if (purchaseInfo1.getLink().startsWith("https://www.sivillage")) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

분기 처리하는 if-else문들은 중복되니까 메서드로 따로 빼도 좋을 것 같아요!

@yoonsseo yoonsseo merged commit bd8c068 into main Jan 31, 2024
1 check passed
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.

2 participants