diff --git a/src/main/java/kusitms/gallae/dto/tourapi/TourApiDto.java b/src/main/java/kusitms/gallae/dto/tourapi/TourApiDto.java index fc29990..56c7684 100644 --- a/src/main/java/kusitms/gallae/dto/tourapi/TourApiDto.java +++ b/src/main/java/kusitms/gallae/dto/tourapi/TourApiDto.java @@ -9,4 +9,7 @@ public class TourApiDto { private String title; private String photoUrl; -} + + private String link; + + } diff --git a/src/main/java/kusitms/gallae/global/TourApiService.java b/src/main/java/kusitms/gallae/global/TourApiService.java index bd715d2..e84d7b8 100644 --- a/src/main/java/kusitms/gallae/global/TourApiService.java +++ b/src/main/java/kusitms/gallae/global/TourApiService.java @@ -78,6 +78,7 @@ public List getTourDatas(String region) { JSONObject itemIndex = (JSONObject) item.get(i); tourApiDto.setTitle(itemIndex.getString("title")); tourApiDto.setPhotoUrl(itemIndex.getString("firstimage")); + tourApiDto.setLink("https://parks.seoul.go.kr/template/sub/cheonho.do"); data.add(tourApiDto); } @@ -136,6 +137,7 @@ public List getTourLodgment(String region) { JSONObject itemIndex = (JSONObject) item.get(i); tourApiDto.setTitle(itemIndex.getString("title")); tourApiDto.setPhotoUrl(itemIndex.getString("firstimage")); + tourApiDto.setLink("https://www.marriott.com/ko/hotels/seljw-jw-marriott-hotel-seoul/overview/"); data.add(tourApiDto); }