-
Notifications
You must be signed in to change notification settings - Fork 2
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
[BE] refactor: 서비스 리팩터링 #540
Changes from 1 commit
1e6204b
d62a842
de03539
2fc94e1
7561c72
d3842d2
3cfe514
daecbdc
9cc53a9
b60807f
ebc281c
e42293c
357e9ef
bb153e5
646d8b7
20d6ffc
bd4b455
fd2f730
14e1819
76a01c7
08e5707
7e15fa3
8726e0c
cfe4fd9
c351eb2
4ff1bb4
f494164
b0e20bc
0d63f18
d93f943
6363b82
0062fb4
1359b10
8caa2b0
b90aa47
1f18e77
0071013
7022bcb
c280809
d9b4519
caa0716
eca9491
591f8cb
d3a615c
610b785
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,6 +38,7 @@ public ReviewDetailResponse mapToReviewDetailResponse(Review review, ReviewGroup | |
List<Section> sections = sectionRepository.findAllByTemplateId(templateId); | ||
List<SectionAnswerResponse> sectionResponses = sections.stream() | ||
.map(section -> mapToSectionResponse(review, reviewGroup, section)) | ||
.filter(sectionResponse -> !sectionResponse.questions().isEmpty()) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Dto라도 이런 질문은 던져도 괜찮다고 생각해요~!~! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 만들어진 sectionResponse의 질문들이 없는 경우를 거르고 있는데 이 부분은 왜 필요한 건지 궁금해요! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @donghoony 반영 완료👍 |
||
.toList(); | ||
|
||
return new ReviewDetailResponse( | ||
|
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.
응답 객체를 생성한다는 책임이 분리되어 서비스는 좀 더 흐름적인 부분에 집중, mapper 객체는 repo와 교류하며 응답생성. 이렇게 응집도가 올라가네요!
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.
👍👍👍👌