Skip to content

Commit e2aa4d7

Browse files
authored
Merge pull request #144 from Pinback-Team/feat/#143
feat: 공유 아티클 상세 조회 response에 url 추가
2 parents 9ca4e18 + f60b73a commit e2aa4d7

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

application/src/main/java/com/pinback/application/article/dto/response/SharedArticleDetailResponse.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@
55
public record SharedArticleDetailResponse(
66
long articleId,
77
String ownerName,
8-
String memo
8+
String memo,
9+
String url
910
) {
1011
public static SharedArticleDetailResponse from(Article article) {
1112
return new SharedArticleDetailResponse(
1213
article.getId(),
1314
article.getUser().getUsername(),
14-
article.getMemo()
15+
article.getMemo(),
16+
article.getUrl()
1517
);
1618
}
1719
}

0 commit comments

Comments
 (0)