From dcd6f68a6d85867b658b1abdf410da12efc5e00f Mon Sep 17 00:00:00 2001 From: younggyo Date: Sun, 28 Jan 2024 23:32:35 +0900 Subject: [PATCH] =?UTF-8?q?fix=20:=20update=20=EA=B2=80=EC=83=89=20?= =?UTF-8?q?=EA=B8=B0=EB=8A=A5=20id=20=EC=A1=B0=ED=9A=8C=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../example/reddiserver/dto/search/response/SearchBrands.java | 2 ++ .../example/reddiserver/dto/search/response/SearchPosts.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/main/java/com/example/reddiserver/dto/search/response/SearchBrands.java b/src/main/java/com/example/reddiserver/dto/search/response/SearchBrands.java index f4704e4..47f00a3 100644 --- a/src/main/java/com/example/reddiserver/dto/search/response/SearchBrands.java +++ b/src/main/java/com/example/reddiserver/dto/search/response/SearchBrands.java @@ -13,12 +13,14 @@ @Getter @Builder public class SearchBrands { + private Long id; private String name; private List 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()) diff --git a/src/main/java/com/example/reddiserver/dto/search/response/SearchPosts.java b/src/main/java/com/example/reddiserver/dto/search/response/SearchPosts.java index ec6b6bb..e39d113 100644 --- a/src/main/java/com/example/reddiserver/dto/search/response/SearchPosts.java +++ b/src/main/java/com/example/reddiserver/dto/search/response/SearchPosts.java @@ -12,6 +12,7 @@ @Getter @Builder public class SearchPosts { + private Long id; private String title; private String subtitle; private List postTags; @@ -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()))