From 8774d76d4db09b6534fc309c699d917378b2074d Mon Sep 17 00:00:00 2001 From: syyling Date: Thu, 30 May 2024 01:28:46 +0900 Subject: [PATCH] =?UTF-8?q?[feat]=20=ED=94=8C=EB=A0=88=EC=9D=B4=EB=A6=AC?= =?UTF-8?q?=EC=8A=A4=ED=8A=B8=20=EC=98=81=ED=99=94=20=EC=A1=B0=ED=9A=8C=20?= =?UTF-8?q?dto=20=ED=95=84=EB=93=9C=20tmdbId=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../application/dto/response/MovieInPlaylistResponse.java | 4 +++- .../application/mapper/MovieInPlaylistMapper.java | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) 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(); } }