diff --git a/src/main/java/com/mookive/mookive_backend/movieInPlaylist/application/dto/response/MovieInPlaylistResponse.java b/src/main/java/com/mookive/mookive_backend/movieInPlaylist/application/dto/response/MovieInPlaylistResponse.java index 8f51788..ccb50f4 100644 --- a/src/main/java/com/mookive/mookive_backend/movieInPlaylist/application/dto/response/MovieInPlaylistResponse.java +++ b/src/main/java/com/mookive/mookive_backend/movieInPlaylist/application/dto/response/MovieInPlaylistResponse.java @@ -12,12 +12,14 @@ public static class MovieInPlaylistDefaultResponse { private String title; private String poster; private String rating; + private String tmdbId; @Builder - public MovieInPlaylistDefaultResponse(String title, String poster, String rating) { + public MovieInPlaylistDefaultResponse(String title, String poster, String rating, String tmdbId) { this.title = title; this.poster = poster; this.rating = rating; + this.tmdbId = tmdbId; } } } diff --git a/src/main/java/com/mookive/mookive_backend/movieInPlaylist/application/mapper/MovieInPlaylistMapper.java b/src/main/java/com/mookive/mookive_backend/movieInPlaylist/application/mapper/MovieInPlaylistMapper.java index ae642b1..118c4e3 100644 --- a/src/main/java/com/mookive/mookive_backend/movieInPlaylist/application/mapper/MovieInPlaylistMapper.java +++ b/src/main/java/com/mookive/mookive_backend/movieInPlaylist/application/mapper/MovieInPlaylistMapper.java @@ -20,6 +20,7 @@ public static MovieInPlaylist mapToMovieInPlaylist(Movie movie, Playlist playlis .title(movieInPlaylist.getMovie().getTitle()) .poster(movieInPlaylist.getMovie().getPoster()) .rating(rating) + .tmdbId(movieInPlaylist.getMovie().getTmdbId()) .build(); } }