Refactor: board 도메인 DTO 및 Repository 개선 (#212) #238
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. DTO 주석 통일
id→ID, “작성 및 수정 요청” 통합 등)2. 댓글 Repository 개선 (
CommentRepositoryImpl)likeCount별도 쿼리 제거 →comment.likeCount직접 조회sortInMemoryIfNeeded) 제거, DB 정렬로 통합createdAt,updatedAt,likeCount) 적용3. 댓글 좋아요 Repository 개선 (
CommentLikeRepositoryImpl)findLikedCommentIdsIn메서드 주석 추가4. 게시글 Repository 개선 (
PostRepositoryImpl)post.likeCount등으로 직접 조회CategoryType내에서는 ORCategoryType간에는 AND 결합createdAt,updatedAt,title,likeCount,bookmarkCount,commentCount)categoryIds필터 시 CategoryType 매핑 쿼리 추가5. 서비스 및 컨트롤러 변경
PostService#getPosts()categoryId→List<Long> categoryIds변경PostController,PostControllerDocs@RequestParam Long categoryId→List<Long> categoryId수정6. 테스트 추가
🔗 관련 이슈
Closes #{이슈 번호}
📝 참고 사항
✅ 체크리스트