Feat: 커뮤니티 관련 API 개선 (#222) #226
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📌 개요
🔨 작업 내용
1. 작성자 프로필 이미지 추가
AuthorResponse에profileImageUrl필드를 추가하여 게시글/댓글 작성자의 프로필 이미지를 함께 응답.QAuthorResponse) 수정 반영.2. 댓글 목록 조회 시 좋아요 여부 포함
CommentService#getComments(Long postId, Long userId, Pageable pageable)추가.CommentLikeRepositoryCustom으로 한 번에 조회.likedByMeBoolean 필드 주입.3. 게시글 단건 조회 시 좋아요·북마크 여부 포함
PostService#getPostWithUser()호출.PostLikeRepository,PostBookmarkRepository에서 존재 여부 조회 후PostDetailResponse에 주입.4. 썸네일 URL 필드 추가
Post엔티티에thumbnailUrl필드 추가 (@Column(length = 500)).PostListResponse,PostRequest,PostRepositoryImpl에 반영.thumbnailUrl값이 있으면 함께 저장.🔗 관련 이슈
Closes #222
📝 참고 사항
✅ 체크리스트