Skip to content

Commit

Permalink
Merge pull request #100 from Central-MakeUs/14-필터를-조회한다
Browse files Browse the repository at this point in the history
Fix(#14): 필터 상세조회 썸네일 추가
  • Loading branch information
tmddus2 authored Aug 26, 2024
2 parents 41f5a30 + 43600ef commit ff38ddb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,6 @@ public class FilterDetailDto {
List<FilterPictureDto> pictures;
@Schema(description = "좋아요 여부")
boolean liked;
@Schema(description = "필터 썸네일")
String thumbnail;
}
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ public FilterDetailDto getFilterDetail(Long id, Long filterId) {
.pureDegree(Optional.ofNullable(reviewRepository.getAverage(filterId)).orElse(0))
.pictures(filters)
.liked(isLike(filterId, id))
.thumbnail(filter.getThumbnail())
.build();
}

Expand Down

0 comments on commit ff38ddb

Please sign in to comment.