Skip to content

Commit

Permalink
refactor: Add postId in SingleRecentPostWidgetResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
Kwon770 committed Jan 30, 2024
1 parent 955f35d commit 9d80918
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public ResponseEntity<SingleRecentPostWidgetResponse> getSingleRecentFamilyPostW
Member author = memberService.findMemberById(latestPost.getMemberId());
return ResponseEntity.ok(new SingleRecentPostWidgetResponse(
author.getName(),
latestPost.getId(),
optimizedImageUrlGenerator.getKBImageUrlGenerator(author.getProfileImgUrl()),
optimizedImageUrlGenerator.getKBImageUrlGenerator(latestPost.getPostImgUrl()),
latestPost.getContent()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ public record SingleRecentPostWidgetResponse(
@Schema(description = "게시자 프로필 사진 주소", example = "https://asset.no5ing.kr/post/01HGW2N7EHJVJ4CJ999RRS2E97")
String authorProfileImageUrl,

@Schema(description = "피드 게시물 아이디", example = "01HGW2N7EHJVJ4CJ999RRS2E97")
String postId,

@Schema(description = "피드 게시물 사진 주소", example = "https://asset.no5ing.kr/post/01HGW2N7EHJVJ4CJ999RRS2E97")
String postImageUrl,

Expand Down

0 comments on commit 9d80918

Please sign in to comment.