Skip to content
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

Merged
merged 5 commits into from
Oct 24, 2024

Conversation

tsulocalize
Copy link
Contributor

❗ Issue

✨ 구현한 기능

📢 논의하고 싶은 내용

🎸 기타

Copy link
Contributor

@tkdgur0906 tkdgur0906 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니닷

Copy link
Contributor

@shin-jisong shin-jisong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고하셨습니다~

Copy link
Contributor

@JINU-CHANG JINU-CHANG left a 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) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
private SubwayStationResponse readNearstStation(Checklist checklist) {
private SubwayStationResponse readNearestStation(Checklist checklist) {

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

반영했습니다!

Comment on lines 233 to 240
List<ChecklistStation> checklistStations = checklistStationService.readChecklistStationsByChecklist(checklist);
if (checklistStations.isEmpty()) {
return null;
}

List<SubwayStationResponse> stationResponses = checklistStations.stream()
.map(SubwayStationResponse::from)
.toList();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SubwayStationResponses가 생성 책임을 가지고 있어도 되지 않을까요?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

일단 반영했는데, 요청하신 게 맞는지 잘 모르겠네요...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

checkliststations 스트림으로 돌면서 생성하는 로직 말한거였어요 ..! from이 checkliststation 도메인을 받아서 생성하면 코드가 더 깔끔해질 것 같아요

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

우주) 이미 from(LIst) 메서드가 있어서 추가로 from(List) 메서드를 선언해줄 수 없었습니다!
나중에 개선 방식을 생각해볼게요!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

흠 그럼 나중에 확인해주세요!

@JINU-CHANG JINU-CHANG merged commit c507458 into dev-be Oct 24, 2024
2 checks passed
@JINU-CHANG JINU-CHANG deleted the feat/889-checklist-listv1 branch October 24, 2024 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants