Skip to content

Commit

Permalink
[Feat] 총학공지 리스트 이미지 수 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
hen715 committed Jan 23, 2025
1 parent a33d0e4 commit cccbaa6
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,16 @@ public class CouncilNoticeListDto {
@Schema(description = "조회수")
private Long view;

@Schema(description = "이미지 수")
private Long imageCount;

@Builder
private CouncilNoticeListDto (Long id, String title, String createDate, Long view){
private CouncilNoticeListDto (Long id, String title, String createDate, Long view, Long imageCount) {
this.id = id;
this.title = title;
this.createDate = createDate;
this.view = view;
this.imageCount = imageCount;
}

public static CouncilNoticeListDto of(CouncilNotice councilNotice){
Expand All @@ -38,6 +42,7 @@ public static CouncilNoticeListDto of(CouncilNotice councilNotice){
.title(councilNotice.getTitle())
.createDate(councilNotice.getCreateDate().format(DateTimeFormatter.ofPattern("yyyy.MM.dd")))
.view(councilNotice.getView())
.imageCount(councilNotice.getImageCount())
.build();
}
}

0 comments on commit cccbaa6

Please sign in to comment.