Skip to content

Commit

Permalink
feature: add original link to dto
Browse files Browse the repository at this point in the history
  • Loading branch information
mushroom1324 committed Nov 13, 2024
1 parent e9ab422 commit 9147fb6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ public record GetArticle(
@Schema(description = "이미지") List<String> images,
@Schema(description = "언론사") Press press,
@Schema(description = "카테고리") String category,
@Schema(description = "원본 링크") String articleSource,
@Schema(description = "댓글") List<GetComment> comment,
@Schema(description = "좋아요 수") Integer likeCount,
@Schema(description = "내가 좋아요했는지 여부") Boolean likedArticle
Expand All @@ -37,6 +38,7 @@ public static GetArticle of(Article article, Boolean isLikedArticle) {
article.getImages(),
article.getPress(),
article.getCategory().toString(),
article.getArticleSource(),
getComments(article),
article.getLikeCount(),
isLikedArticle
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ public GetArticles postArticle(String requestBody) throws ParseException {

try {
recommenderUtils.registerArticle(article);

}
catch (JsonProcessingException e) {
e.printStackTrace();
Expand Down

0 comments on commit 9147fb6

Please sign in to comment.