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

[feat] 좋아요 전체 갯수 응답값 추가 #83

Merged
merged 2 commits into from
Jul 16, 2024
Merged

[feat] 좋아요 전체 갯수 응답값 추가 #83

merged 2 commits into from
Jul 16, 2024

Conversation

kgy1008
Copy link
Member

@kgy1008 kgy1008 commented Jul 16, 2024

Related Issue 📌

close #82

Description ✔️

  • 좋아요 취소와 생성을 요청을 보낼 때, 그 응답값으로 해당 가게의 전체 좋아요 갯수도 함께 보내달라는 클라측의 요청이 있어 이를 반영하였습니다.

To Reviewers

응답 결과

image image

@kgy1008 kgy1008 added the api label Jul 16, 2024
@kgy1008 kgy1008 self-assigned this Jul 16, 2024
@@ -31,7 +31,7 @@ public HeartCreateResponse createHeart(final StorePostCommand storePostCommand)
validateStoreHeartCreation(user, store);
saveStoreHeart(user, store);
increaseStoreHeartCount(store);
return HeartCreateResponse.of(store.getId(), true);
return HeartCreateResponse.of(store.getId(), true, findTotalHeartCount(store));
Copy link
Contributor

Choose a reason for hiding this comment

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

이 부분은 store를 매개변수로 전달해서 DTO에서 처리할 수 있지않을까요??

Copy link
Contributor

Choose a reason for hiding this comment

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

store를 전달해서 dto안에서 id와 count를 꺼낼 수 있을 것 같습니다

@kgy1008 kgy1008 merged commit eb20338 into develop Jul 16, 2024
1 check passed
@kgy1008 kgy1008 deleted the feat/82 branch December 2, 2024 05:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feat] 좋아요 전체 갯수 응답값 추가 사항 반영
2 participants