Skip to content

Commit

Permalink
fix : update 검색 기능 id 조회 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
YoungGyo-00 committed Jan 28, 2024
1 parent f45d1be commit dcd6f68
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@
@Getter
@Builder
public class SearchBrands {
private Long id;
private String name;
private List<BrandTagDto> brandTags;
private String coverUrl;

public static SearchBrands convertBrandToSearchBrands(Brand brand) {
return SearchBrands.builder()
.id(brand.getId())
.name(brand.getName())
.brandTags(convertToDtoList(brand.getBrandTags()))
.coverUrl(brand.getCover_url())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
@Getter
@Builder
public class SearchPosts {
private Long id;
private String title;
private String subtitle;
private List<PostTagDto> postTags;
Expand All @@ -21,6 +22,7 @@ public class SearchPosts {

public static SearchPosts convertPostToSearchPosts(Post post) {
return SearchPosts.builder()
.id(post.getId())
.title(post.getTitle())
.subtitle(post.getSubtitle())
.postTags(convertToDtoList(post.getPostTags()))
Expand Down

0 comments on commit dcd6f68

Please sign in to comment.