-
Notifications
You must be signed in to change notification settings - Fork 4
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] 체크리스트 목록 조회 시 지하철 json 형태를 변경한다. #896
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.
고생하셨습니닷
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.
수고하셨습니다 사소한 코멘트 몇개만 확인해주세요 👍
return ChecklistPreviewResponseV1.of(checklist, stationResponse, isLiked); | ||
} | ||
|
||
private SubwayStationResponse readNearstStation(Checklist checklist) { |
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.
private SubwayStationResponse readNearstStation(Checklist checklist) { | |
private SubwayStationResponse readNearestStation(Checklist checklist) { |
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.
반영했습니다!
List<ChecklistStation> checklistStations = checklistStationService.readChecklistStationsByChecklist(checklist); | ||
if (checklistStations.isEmpty()) { | ||
return null; | ||
} | ||
|
||
List<SubwayStationResponse> stationResponses = checklistStations.stream() | ||
.map(SubwayStationResponse::from) | ||
.toList(); |
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.
SubwayStationResponses가 생성 책임을 가지고 있어도 되지 않을까요?
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.
checkliststations 스트림으로 돌면서 생성하는 로직 말한거였어요 ..! from이 checkliststation 도메인을 받아서 생성하면 코드가 더 깔끔해질 것 같아요
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.
우주) 이미 from(LIst) 메서드가 있어서 추가로 from(List) 메서드를 선언해줄 수 없었습니다!
나중에 개선 방식을 생각해볼게요!
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.
흠 그럼 나중에 확인해주세요!
❗ Issue
✨ 구현한 기능
📢 논의하고 싶은 내용
🎸 기타