Closed Subak-Uncle closed 3 months ago
댓글 작성 시에 좋아요 개수가 응답되도록 리팩토링하였습니다.
좋아요 개수
댓글 조회 API에 각 댓글 당 'MemberNo'가 응답되도록 리팩토링하였습니다.
특정 게시글 댓글 리스트 조회와 특정 회원 댓글 리스트 조회는 무한 스크롤로 Paging을 구현하였고, 신고된 댓글 리스트 조회는 offset을 활용한 Pagination으로 구현하였습니다.
특정 게시글 댓글 리스트 조회
특정 회원 댓글 리스트 조회
신고된 댓글 리스트 조회
삭제된 댓글은 보이지 않도록 변경하였습니다.
페이징에서 총 페이지가 올림 처리되도록 변경하였습니다.
올림 처리
Math.floor
size=10
totalPage
Math.ceil
PostQueryRepositoryImpl에서 댓글 총 개수 구하는 메소드 변경이 있어 반영하였습니다.
PostQueryRepositoryImpl
PR Title 형식 예시
[Feature - Feb 1st, 2024]{USER} 엔티티 설계
📌 관련 이슈
✨ 과제 내용
댓글 작성 시에
좋아요 개수
가 응답되도록 리팩토링하였습니다.댓글 조회 API에 각 댓글 당 'MemberNo'가 응답되도록 리팩토링하였습니다.
특정 게시글 댓글 리스트 조회
와특정 회원 댓글 리스트 조회
는 무한 스크롤로 Paging을 구현하였고,신고된 댓글 리스트 조회
는 offset을 활용한 Pagination으로 구현하였습니다.삭제된 댓글은 보이지 않도록 변경하였습니다.
페이징에서 총 페이지가
올림 처리
되도록 변경하였습니다.Math.floor
가 적용되어 있어, 11개의 행이 있다면size=10
설정 시totalPage
는 1이 나왔습니다.Math.ceil
로 변경하여, 11개의 행이 있다면size=10
설정 시totalPage
는 2가 나오게 변경하였습니다.PostQueryRepositoryImpl
에서 댓글 총 개수 구하는 메소드 변경이 있어 반영하였습니다.📸 스크린샷(선택)
📚 레퍼런스 (또는 새로 알게 된 내용) 혹은 궁금한 사항들
PR Title 형식 예시