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)); }