Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#48] 게시글 조회 API 구현 #49

Merged
merged 3 commits into from
Jul 10, 2024
Merged

[#48] 게시글 조회 API 구현 #49

merged 3 commits into from
Jul 10, 2024

Conversation

hyeok-kong
Copy link
Collaborator

개발 내용

  • 오프셋 기반 페이징 적용
  • N+1 문제 해결을 위한 fetch join 사용

개발 코멘트

  • 현재 단일 그룹에 대한 게시글 조회만 지원하지만, OPEN 상태의 게시글의 경우 모든 그룹의 게시글이 조회되어야 합니다.
  • 게시글 상태에 따라 제한이 추가될 수 있습니다.
  • 이에 QueryDSL을 도입하여 보다 쉽게 동적쿼리를 지원할 예정입니다.

@hyeok-kong hyeok-kong added the enhancement New feature or request label Jul 10, 2024
@hyeok-kong hyeok-kong self-assigned this Jul 10, 2024

@Getter
@Builder
public class PostListResponseDto {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

현재 위 클래스는 PostResponseDto와 구조가 동일합니다. 별도의 클래스를 만든 이유는 다음과 같습니다.

  1. 댓글 기능이 추가될 경우 게시글 단건 조회 API는 해당 사항을 반영해야 한다.
  2. 게시글 목록 조회 API는 댓글의 내용을 알 필요가 없다.

@hyeok-kong hyeok-kong merged commit e93372c into main Jul 10, 2024
1 check passed
@hyeok-kong hyeok-kong deleted the feature/offset_paging branch July 10, 2024 11:51
@hyeok-kong hyeok-kong linked an issue Jul 12, 2024 that may be closed by this pull request
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

게시글 조회 기능 개발
1 participant