Skip to content

refactor : 좋아요 북마크 로직 수정#103

Merged
wonee1 merged 1 commit intodevelopfrom
refactor/#101-place-img
Aug 4, 2025
Merged

refactor : 좋아요 북마크 로직 수정#103
wonee1 merged 1 commit intodevelopfrom
refactor/#101-place-img

Conversation

@wonee1
Copy link
Collaborator

@wonee1 wonee1 commented Aug 4, 2025

📝작업 내용

기능 추가

  • 희소식 전체 조회 응답에 liked 여부 추가
  • 상세 조회 응답에도 liked 필드 반영
  • 로그인 사용자 기준으로 좋아요 여부 판단하여 반환

코드 수정

  • PostDtoboolean liked 필드 추가
  • postService.getAllPosts() 수정 → 사용자 email을 통해 좋아요 여부 확인 후 DTO에 반영
  • postService.getPostById()도 동일하게 liked 정보 포함
  • 기존 likeCount는 그대로 유지하며, 사용자 맞춤 liked 필드만 추가됨

스크린샷 (선택)

💬리뷰 요구사항(선택)

리뷰어가 특별히 봐주었으면 하는 부분이 있다면 작성해주세요

ex) 메서드 XXX의 이름을 더 잘 짓고 싶은데 혹시 좋은 명칭이 있을까요?

@wonee1 wonee1 merged commit 3272b1a into develop Aug 4, 2025
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