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); } }