Skip to content

Commit

Permalink
Merge pull request #160 from pknu-wap/feature/요구사항_추가
Browse files Browse the repository at this point in the history
카테고리 dto 에 isPrPost 추가
  • Loading branch information
JONG-KYEONG authored Nov 29, 2023
2 parents fffec46 + 72b44ac commit 506a9d6
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@
public class SidebarDto {
private Long categoryId;
private String categoryName;
private Boolean isPrCategory;
private List<PostTitleDto> postTitleDtos = new ArrayList<>(); //TODO 일급 컬렉션으로 수정

public SidebarDto(Category category, List<Post> posts){
categoryId = category.getId();
categoryName = category.getCategoryName();
isPrCategory = category.getIsPrcategory();
for(Post post : posts){
postTitleDtos.add(PostTitleDto.of(post));
}
Expand Down

0 comments on commit 506a9d6

Please sign in to comment.