Skip to content

Commit

Permalink
refactor : feed get
Browse files Browse the repository at this point in the history
  • Loading branch information
NameIsUser06 committed Jan 7, 2024
1 parent 23caf4b commit a5dd47f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
@Getter
@Builder
public class FeedResponse {
private String name;
private String content;
private List<String> tags;
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public ResponseEntity<FeedResponse> execute(Long feedId) {
() -> FeedNotFoundException.EXCEPTION
);
return ResponseEntity.ok(FeedResponse.builder()
.name(feed.getFriend().getName())
.content(feed.getContent())
.tags(feed.getTags())
.build()
Expand Down

0 comments on commit a5dd47f

Please sign in to comment.