From d7e2d9fcf46fb25b7a374c64c1bc5b4a2e083c8d Mon Sep 17 00:00:00 2001 From: Jindongleee Date: Sat, 5 Oct 2024 23:18:38 +0900 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8FRefactor:=20=EC=B9=B4?= =?UTF-8?q?=ED=85=8C=20=EA=B3=A0=EB=A6=AC=20=EB=84=98=EA=B2=A8=20=EC=A3=BC?= =?UTF-8?q?=EA=B8=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/korad1004/back_end/course/dto/CourseInfoDto.java | 2 ++ .../korad1004/back_end/course/service/CoursePlaceService.java | 1 + 2 files changed, 3 insertions(+) diff --git a/src/main/java/com/korad1004/back_end/course/dto/CourseInfoDto.java b/src/main/java/com/korad1004/back_end/course/dto/CourseInfoDto.java index c3443f0..7faf3e0 100644 --- a/src/main/java/com/korad1004/back_end/course/dto/CourseInfoDto.java +++ b/src/main/java/com/korad1004/back_end/course/dto/CourseInfoDto.java @@ -21,6 +21,8 @@ public class CourseInfoDto { private String longitude; + private String category; + public static CourseInfoDto from(CoursePlace coursePlace){ diff --git a/src/main/java/com/korad1004/back_end/course/service/CoursePlaceService.java b/src/main/java/com/korad1004/back_end/course/service/CoursePlaceService.java index 5259d51..8f902e2 100644 --- a/src/main/java/com/korad1004/back_end/course/service/CoursePlaceService.java +++ b/src/main/java/com/korad1004/back_end/course/service/CoursePlaceService.java @@ -72,6 +72,7 @@ public List getCoursePlace(Long id){ courseInfoDto.setImage(hotspot.getImage()); courseInfoDto.setLatitude(hotspot.getLatitude()); courseInfoDto.setLongitude(hotspot.getLongitude()); + courseInfoDto.setCategory(hotspot.getCategory().getCategoryName()); courseInfoDtoList.add(courseInfoDto); } }