Skip to content

Commit

Permalink
searchAdd
Browse files Browse the repository at this point in the history
  • Loading branch information
Johyunik committed Dec 1, 2023
1 parent 7282884 commit e1dc82d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/com/weatherfit/board/dto/BoardSearchDTO.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
import lombok.Getter;
import lombok.Setter;

import java.util.List;


@Getter
@Setter
Expand All @@ -14,4 +16,6 @@ public class BoardSearchDTO {
private int temperature;
private int likeCount;
private ImageDTO images;
private List<String> category;
private List<String> hashTag;
}
2 changes: 2 additions & 0 deletions src/main/java/com/weatherfit/board/service/BoardService.java
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,8 @@ public List<BoardSearchDTO> search(List<String> categories, List<String> 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();
Expand Down

0 comments on commit e1dc82d

Please sign in to comment.