From 0479428c815efd83d51205d0099f5c4139a8059f Mon Sep 17 00:00:00 2001 From: Dayeon-Hong Date: Wed, 5 Jun 2024 16:47:57 +0900 Subject: [PATCH] =?UTF-8?q?fix=20:=20DDAY=20API=20=EC=9A=94=EC=B2=AD?= =?UTF-8?q?=EC=97=90=20=EB=82=98=EB=9D=BC=20=EC=A0=95=EB=B3=B4=20=ED=8F=AC?= =?UTF-8?q?=ED=95=A8=ED=95=98=EA=B8=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/schedule/dto/response/FastestScheduleResponse.java | 2 ++ .../isp/backend/domain/schedule/mapper/ScheduleMapper.java | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/backend/src/main/java/com/isp/backend/domain/schedule/dto/response/FastestScheduleResponse.java b/backend/src/main/java/com/isp/backend/domain/schedule/dto/response/FastestScheduleResponse.java index 49ffc7e5..6afbfe8f 100644 --- a/backend/src/main/java/com/isp/backend/domain/schedule/dto/response/FastestScheduleResponse.java +++ b/backend/src/main/java/com/isp/backend/domain/schedule/dto/response/FastestScheduleResponse.java @@ -17,6 +17,8 @@ public class FastestScheduleResponse { private String dday; + private String country ; + private String imageUrl; } diff --git a/backend/src/main/java/com/isp/backend/domain/schedule/mapper/ScheduleMapper.java b/backend/src/main/java/com/isp/backend/domain/schedule/mapper/ScheduleMapper.java index 4ccfffe4..c355c6a5 100644 --- a/backend/src/main/java/com/isp/backend/domain/schedule/mapper/ScheduleMapper.java +++ b/backend/src/main/java/com/isp/backend/domain/schedule/mapper/ScheduleMapper.java @@ -157,8 +157,8 @@ public FastestScheduleResponse toFastestScheduleDTO(Schedule schedule) { response.setId(schedule.getId()); response.setScheduleName(schedule.getScheduleName()); response.setDday(calculateDday(schedule.getStartDate())); - String imageUrl = schedule.getCountry().getImageUrl(); - response.setImageUrl(imageUrl); + response.setCountry(schedule.getCountry().getCity()); + response.setImageUrl(schedule.getCountry().getImageUrl()); return response; }