diff --git a/backend/src/main/java/wooteco/prolog/roadmap/application/dto/RecommendedPostResponse.java b/backend/src/main/java/wooteco/prolog/roadmap/application/dto/RecommendedPostResponse.java index ca9835f6b..75816135e 100644 --- a/backend/src/main/java/wooteco/prolog/roadmap/application/dto/RecommendedPostResponse.java +++ b/backend/src/main/java/wooteco/prolog/roadmap/application/dto/RecommendedPostResponse.java @@ -1,18 +1,17 @@ package wooteco.prolog.roadmap.application.dto; +import lombok.AllArgsConstructor; import lombok.Getter; import wooteco.prolog.roadmap.domain.RecommendedPost; +@AllArgsConstructor @Getter public class RecommendedPostResponse { + private final Long id; private final String url; - public RecommendedPostResponse(final String url) { - this.url = url; - } - public static RecommendedPostResponse from(final RecommendedPost recommendedPost) { - return new RecommendedPostResponse(recommendedPost.getUrl()); + return new RecommendedPostResponse(recommendedPost.getId(), recommendedPost.getUrl()); } }