diff --git a/src/main/java/com/mookive/mookive_backend/record/application/dto/response/RecordResponse.java b/src/main/java/com/mookive/mookive_backend/record/application/dto/response/RecordResponse.java index 0f539ee..e47dd3c 100644 --- a/src/main/java/com/mookive/mookive_backend/record/application/dto/response/RecordResponse.java +++ b/src/main/java/com/mookive/mookive_backend/record/application/dto/response/RecordResponse.java @@ -37,10 +37,11 @@ public static class RecordCalendarResponse{ private String poster; private String director; private String year; + private String tmdbId; @Builder public RecordCalendarResponse(String rating, String review, String title, String genre, - String nation, String poster, String director, String year) { + String nation, String poster, String director, String year, String tmdbId) { this.rating = rating; this.review = review; this.title = title; @@ -49,6 +50,7 @@ public RecordCalendarResponse(String rating, String review, String title, String this.poster = poster; this.director = director; this.year = year; + this.tmdbId = tmdbId; } } diff --git a/src/main/java/com/mookive/mookive_backend/record/application/mapper/RecordMapper.java b/src/main/java/com/mookive/mookive_backend/record/application/mapper/RecordMapper.java index 665c7f6..e625070 100644 --- a/src/main/java/com/mookive/mookive_backend/record/application/mapper/RecordMapper.java +++ b/src/main/java/com/mookive/mookive_backend/record/application/mapper/RecordMapper.java @@ -39,6 +39,7 @@ public static RecordResponse.RecordCalendarResponse mapToRecordCalendarResponse( .poster(movie.getPoster()) .director(movie.getDirector()) .year(movie.getYear()) + .tmdbId(movie.getTmdbId()) .build(); }