Skip to content

Commit

Permalink
DTO date add
Browse files Browse the repository at this point in the history
  • Loading branch information
Johyunik committed Dec 7, 2023
1 parent 542ae9c commit f29995f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;
import java.util.List;

@Getter
Expand All @@ -19,6 +21,8 @@ public class BoardListResponseDTO {
private List<String> hashTag;
private String weatherIcon;
private List<LikeEntity> likelist;
private LocalDateTime createDate;
private LocalDateTime modifiedDate;


}
6 changes: 6 additions & 0 deletions src/main/java/com/weatherfit/board/service/BoardService.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ public List<BoardListResponseDTO> findAll() {
.category(board.getCategory())
.temperature(board.getTemperature())
.likelist(board.getLikelist())
.createDate(board.getCreateDate())
.modifiedDate(board.getModifiedDate())
.weatherIcon(board.getWeatherIcon());

if (!board.getImages().isEmpty()) {
Expand All @@ -73,6 +75,8 @@ public List<BoardListResponseDTO> findDate() {
.category(board.getCategory())
.temperature(board.getTemperature())
.likelist(board.getLikelist())
.createDate(board.getCreateDate())
.modifiedDate(board.getModifiedDate())
.weatherIcon(board.getWeatherIcon());

if (!board.getImages().isEmpty()) {
Expand All @@ -98,6 +102,8 @@ public List<BoardListResponseDTO> findLike() {
.category(board.getCategory())
.temperature(board.getTemperature())
.likelist(board.getLikelist())
.createDate(board.getCreateDate())
.modifiedDate(board.getModifiedDate())
.weatherIcon(board.getWeatherIcon());

if (!board.getImages().isEmpty()) {
Expand Down

0 comments on commit f29995f

Please sign in to comment.