-
Notifications
You must be signed in to change notification settings - Fork 6
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
refactor : 마이페이지 내 예매목록조회 슬라이스 적용 #278
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
@Operation(summary = "마이페이지 내 예매목록 조회") | ||
@GetMapping | ||
public PageResponse<OrderBriefElement> getMyOrders( | ||
public SliceResponse<OrderBriefElement> getMyOrders( | ||
@ParameterObject @RequestParam Boolean showing, | ||
@ParameterObject @PageableDefault(size = 10) Pageable pageable) { | ||
@ParameterObject @PageableDefault Pageable pageable) { | ||
return readOrderUseCase.getMyOrders(showing, pageable); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@PageableDefault
사이즈 지정 안하면 20인가로 되던데 괜찮나유
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@PageableDefault
사이즈 지정 안하면 20인가로 되던데 괜찮나유
디폴트가 10 이라고 회색글자 적히더라구요
// OrderSpecifier[] orderBy = QueryDslUtil.getOrderSpecifiers(Order.class, pageable); | ||
// 오류남 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
요거 나중에 더 개선해볼게요 일단 정렬조건 id.desc()
로 다 고정합시다
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Kudos, SonarCloud Quality Gate passed! 0 Bugs |
개요
작업사항
변경로직