-
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
feat : 호스트, 이벤트 조회 페이징 적용 #212
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.
굿굿~
DuDoong-Api/build.gradle
Outdated
@@ -13,6 +13,7 @@ dependencies { | |||
implementation 'org.springframework.boot:spring-boot-starter-web' | |||
implementation 'org.springframework.boot:spring-boot-starter-validation' | |||
implementation 'org.springdoc:springdoc-openapi-ui:1.6.12' | |||
implementation 'org.springdoc:springdoc-openapi-data-rest:1.5.2' |
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.
요건 뭔가유?
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.
저거 넣어야 pageable 인식이 된다고 해서 넣었는데
지워도 될거 같아요 소용 없음
public List<HostResponse> getAllHosts() { | ||
return readHostListUseCase.execute(); | ||
public PageResponse<HostProfileResponse> getAllHosts( | ||
@ParameterObject @PageableDefault(size = 10) Pageable 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.
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.
이걸로도 충분하지 않나요?
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.
@@ -27,7 +28,7 @@ public class Host extends BaseTimeEntity { | |||
|
|||
// 파트너 여부 | |||
// 정책상 초기값 false 로 고정입니다 | |||
private Boolean partner = false; | |||
private final Boolean partner = false; |
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.
final 넣어도 될려나유?
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.
DB에서 값 바꾸는거에는 영향이 없어서 상관 없을 거 같아요
Kudos, SonarCloud Quality Gate passed! 0 Bugs |
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
개요
작업사항
isMaster
필드 추가EventProfileVo
클래스 추가PageResonse
클래스 추가EventDetail
에서 이미지 관련 Lazy 로딩 오류 수정Pageable
사용할 때@ParameterObject
안붙여주면스웨거에서 쿼리 마라미터로 제대로 인식 못하는 듯 합니다
변경로직