Skip to content

Commit

Permalink
#164 Refactor : 마이페이지 response 수정 2차#164
Browse files Browse the repository at this point in the history
  • Loading branch information
ls-rain committed Feb 22, 2024
1 parent 584bb0b commit d42e600
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/friend/spring/converter/MyPageConverter.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public static MyPageResponseDTO.SavedPostResDTO toSavedPostResDTO(Post post){
long diffTime = post.getCreatedAt().until(LocalDateTime.now(), ChronoUnit.DAYS); // now보다 이후면 +, 전이면 -

return MyPageResponseDTO.SavedPostResDTO.builder()
.postId(post.getId())
.ago(diffTime)
.title(post.getTitle())
.content(post.getContent())
Expand Down
1 change: 1 addition & 0 deletions src/main/java/friend/spring/web/dto/MyPageResponseDTO.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public static class SavedCategoryResDTO{
@NoArgsConstructor
@AllArgsConstructor
public static class SavedPostResDTO{
Long postId;
Long ago;
String title;
String content;
Expand Down

0 comments on commit d42e600

Please sign in to comment.