Skip to content

Commit

Permalink
refactor:createdDate추가
Browse files Browse the repository at this point in the history
  • Loading branch information
jms0324 committed May 28, 2024
1 parent df3ad52 commit 9d0f3d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
import org.kau.kkoolbeeServer.domain.advice.dto.AdviceResponseDto;
import org.kau.kkoolbeeServer.domain.diary.Feeling;

import java.time.LocalDateTime;

@Getter
@Setter
@NoArgsConstructor
Expand All @@ -16,6 +18,7 @@ public class DiaryShareResponseDto {
private String diaryContent;
private String diaryTitle;
private String imageUrl;
private LocalDateTime createdDate;
private String userName;
private AdviceResponseDto advice;
private String feeling;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public DiaryShareResponseDto diaryShare(Long diaryId){
AdviceResponseDto adviceResponseDto=AdviceResponseDto.fromAdviceOrNull(findDiary.getAdvice());

DiaryShareResponseDto responseDto=new DiaryShareResponseDto(findDiary.getId(), findDiary.getContent(),
findDiary.getTitle(), findDiary.getImageurl(), findDiary.getMember().getSocialNickname(),
findDiary.getTitle(), findDiary.getImageurl(), findDiary.getWritedAt(),findDiary.getMember().getSocialNickname(),
adviceResponseDto,feeling);
return responseDto;
}
Expand Down

0 comments on commit 9d0f3d7

Please sign in to comment.