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 형태를 변경한다. #880

Merged
merged 1 commit into from
Oct 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,20 @@
import com.bang_ggood.question.dto.response.SelectedCategoryQuestionsResponse;
import com.bang_ggood.room.dto.response.SelectedRoomResponse;
import com.bang_ggood.room.dto.response.SelectedRoomResponseV1;
import com.bang_ggood.station.dto.response.SubwayStationResponse;
import com.bang_ggood.station.dto.response.SubwayStationResponses;
import java.util.List;

public record SelectedChecklistResponseV1(SelectedRoomResponseV1 room,
List<SelectedOptionResponse> options,
List<SelectedCategoryQuestionsResponse> categories,
boolean isLiked,
SubwayStationResponses stations) {
List<SubwayStationResponse> stations) {

public static SelectedChecklistResponseV1 of(SelectedRoomResponse room, List<SelectedOptionResponse> options,
List<SelectedCategoryQuestionsResponse> categories, boolean isLiked,
SubwayStationResponses stations) {
return new SelectedChecklistResponseV1(SelectedRoomResponseV1.from(room), options, categories, isLiked,
stations);
stations.getStations());
}
}
Loading