-
Notifications
You must be signed in to change notification settings - Fork 0
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
[SKRB-163] feat: 특정 사용자 컨트롤러 테스트 #19
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.
👍
Page<Event> eventPages = userService.findAllEventPages(userId, pageable); | ||
System.out.println(eventPages); | ||
List<EventResponse> eventResponses = eventPages.getContent() | ||
.stream() | ||
.map(EventResponse::from) | ||
.toList(); | ||
System.out.println("eventResponses = " + eventResponses); |
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.
수고하셨어요 👍
public static EventResponse from(Event event) { | ||
return new EventResponse( | ||
event.getId(), | ||
event.getEventInfo().getTitle(), | ||
event.getEventInfo().getLocation(), | ||
event.getClubHost() | ||
); | ||
} |
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.
엔티티 객체의 getter 없이 entity to dto 변환할 수 있는 방법은 어떤 것이 있을까요?
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.
없다 생각해요 ㅋㅋ
44159c0
to
88d3eb7
Compare
88d3eb7
to
463eab7
Compare
💠 Jira 티켓 링크
🖥️ 작업 내용
✅ PR시 확인 사항
📢 리뷰어 전달 사항