Skip to content

Conversation

@infiniment
Copy link
Contributor

관련 이슈

#11

@infiniment infiniment merged commit 9a01808 into develop Nov 19, 2025
2 checks passed
@infiniment infiniment changed the title Feat : API & PAGING Feat : Chapter9. API & PAGING Nov 19, 2025
Copy link

@ggamnunq ggamnunq left a comment

Choose a reason for hiding this comment

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

good

.orElseThrow(() -> new MemberException(MemberErrorCode.NOT_FOUND));

int pageIndex = page - 1;
int size = 10; // 한 페이지당 10개

Choose a reason for hiding this comment

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

size는 상수로 빼면 깔끔해요

.map(ReviewConverter::toMyReview)
.toList())
.listSize(result.getSize())
.totalPage(result.getTotalPages())

Choose a reason for hiding this comment

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

개인적으로 페이징 정보는 공통 클래스를 만들어서 그걸 반환하는걸 선호합니다.
응답 DTO마다 필드를 만들면 api마다 페이징 정보에 대한 필드명이 달라질 수도 있습니다.
그러면 프론트 팀원이 매우 싫어해요

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.

3 participants