Skip to content

Commit

Permalink
[feat] 플레이리스트 영화 조회 dto 필드 tmdbId 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
syyling committed May 29, 2024
1 parent 91e19ff commit 8774d76
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}

0 comments on commit 8774d76

Please sign in to comment.