Skip to content

Commit

Permalink
S2D-62 feat : 공지사항 리스트 조회에 id 추가
Browse files Browse the repository at this point in the history
- 공지사항 리스트 조회에 각 공지사항의 id 추가
  • Loading branch information
KJBig committed Aug 23, 2023
1 parent 2b9eb98 commit 33c0477
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
@NoArgsConstructor
@Builder
public class NoticeSimpleResDto {
@Schema(description = "공지사항 id")
private Long id;
@Schema(description = "공지사항 제목")
private String title;
@Schema(description = "공지사항 공지일")
Expand All @@ -25,6 +27,7 @@ public class NoticeSimpleResDto {
public static NoticeSimpleResDto of(Notice notice){

return NoticeSimpleResDto.builder()
.id(notice.getId())
.title(notice.getTitle())
.createdAt(notice.getCreatedAt())
.noticeType(notice.getNoticeType())
Expand Down

0 comments on commit 33c0477

Please sign in to comment.