Skip to content

Conversation

@joyewon0705
Copy link
Collaborator

📌 개요

  • 게시글 및 댓글 조회 시 사용자 맞춤 데이터(좋아요 여부, 북마크 여부 등) 를 함께 반환하도록 기능을 확장하고,
  • 작성자 정보에 프로필 이미지를 추가했으며 게시글에 썸네일(Thumbnail) URL 필드를 새로 도입했습니다.

🔨 작업 내용

1. 작성자 프로필 이미지 추가

  • AuthorResponseprofileImageUrl 필드를 추가하여 게시글/댓글 작성자의 프로필 이미지를 함께 응답.
  • 모든 게시글·댓글 관련 QueryDSL Projection(QAuthorResponse) 수정 반영.

2. 댓글 목록 조회 시 좋아요 여부 포함

  • CommentService#getComments(Long postId, Long userId, Pageable pageable) 추가.
  • 로그인 유저가 좋아요한 댓글 ID들을 CommentLikeRepositoryCustom으로 한 번에 조회.
  • 각 댓글 및 대댓글에 likedByMe Boolean 필드 주입.

3. 게시글 단건 조회 시 좋아요·북마크 여부 포함

  • 로그인 사용자의 경우 PostService#getPostWithUser() 호출.
  • PostLikeRepository, PostBookmarkRepository에서 존재 여부 조회 후 PostDetailResponse에 주입.

4. 썸네일 URL 필드 추가

  • Post 엔티티에 thumbnailUrl 필드 추가 (@Column(length = 500)).
  • PostListResponse, PostRequest, PostRepositoryImpl에 반영.
  • 게시글 생성 시 thumbnailUrl 값이 있으면 함께 저장.

🔗 관련 이슈

Closes #222

📝 참고 사항

✅ 체크리스트

  • 기능 동작 확인
  • 테스트 코드 작성
  • 문서/주석 추가 및 최신화

@github-actions github-actions bot changed the title Feat: 커뮤니티 관련 API 개선 Feat: 커뮤니티 관련 API 개선 (#222) Oct 10, 2025
@joyewon0705 joyewon0705 force-pushed the Feat/222 branch 6 times, most recently from a70ea99 to 7f8bde8 Compare October 10, 2025 06:30
@joyewon0705 joyewon0705 merged commit f76f33b into dev Oct 10, 2025
3 checks passed
@github-actions github-actions bot deleted the Feat/222 branch October 10, 2025 06:45
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.

4 participants