diff --git a/src/main/java/com/weatherfit/board/dto/BoardSearchDTO.java b/src/main/java/com/weatherfit/board/dto/BoardSearchDTO.java index 0526f9c..69417d3 100644 --- a/src/main/java/com/weatherfit/board/dto/BoardSearchDTO.java +++ b/src/main/java/com/weatherfit/board/dto/BoardSearchDTO.java @@ -4,6 +4,8 @@ import lombok.Getter; import lombok.Setter; +import java.util.List; + @Getter @Setter @@ -14,4 +16,6 @@ public class BoardSearchDTO { private int temperature; private int likeCount; private ImageDTO images; + private List category; + private List hashTag; } diff --git a/src/main/java/com/weatherfit/board/service/BoardService.java b/src/main/java/com/weatherfit/board/service/BoardService.java index d0ce010..7f5a783 100644 --- a/src/main/java/com/weatherfit/board/service/BoardService.java +++ b/src/main/java/com/weatherfit/board/service/BoardService.java @@ -266,6 +266,8 @@ public List search(List categories, List hashTag BoardSearchDTO dto = BoardSearchDTO.builder() .boardId(board.getBoardId()) .nickName(board.getNickName()) + .category(board.getCategory()) + .hashTag(board.getHashTag()) .likeCount(likeService.countLikes(board.getBoardId())) .images(board.entityToDTO(board.getImages().get(0))) .build();