From 72b44aca97751d190d3c64dbe03e232a9c270446 Mon Sep 17 00:00:00 2001 From: JongKyeong Kim Date: Wed, 29 Nov 2023 16:29:22 +0900 Subject: [PATCH] =?UTF-8?q?=EC=B9=B4=ED=85=8C=EA=B3=A0=EB=A6=AC=20dto=20?= =?UTF-8?q?=EC=97=90=20isPrPost=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/project/Glog/dto/response/category/SidebarDto.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/src/main/java/com/project/Glog/dto/response/category/SidebarDto.java b/server/src/main/java/com/project/Glog/dto/response/category/SidebarDto.java index 4290f677..78f10060 100644 --- a/server/src/main/java/com/project/Glog/dto/response/category/SidebarDto.java +++ b/server/src/main/java/com/project/Glog/dto/response/category/SidebarDto.java @@ -13,11 +13,13 @@ public class SidebarDto { private Long categoryId; private String categoryName; + private Boolean isPrCategory; private List postTitleDtos = new ArrayList<>(); //TODO 일급 컬렉션으로 수정 public SidebarDto(Category category, List posts){ categoryId = category.getId(); categoryName = category.getCategoryName(); + isPrCategory = category.getIsPrcategory(); for(Post post : posts){ postTitleDtos.add(PostTitleDto.of(post)); }