Skip to content

Commit

Permalink
fix : TourApiDto 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
sebbbin committed Nov 23, 2023
1 parent 4a2c859 commit 93938e8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/kusitms/gallae/dto/tourapi/TourApiDto.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@ public class TourApiDto {
private String title;

private String photoUrl;
}

private String link;

}
2 changes: 2 additions & 0 deletions src/main/java/kusitms/gallae/global/TourApiService.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ public List<TourApiDto> 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);
}

Expand Down Expand Up @@ -136,6 +137,7 @@ public List<TourApiDto> 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);
}

Expand Down

0 comments on commit 93938e8

Please sign in to comment.