From 33c047722158fe587a1bd4a4b2c78de59150457b Mon Sep 17 00:00:00 2001 From: junker Date: Wed, 23 Aug 2023 22:10:25 +0900 Subject: [PATCH] =?UTF-8?q?S2D-62=20feat=20:=20=EA=B3=B5=EC=A7=80=EC=82=AC?= =?UTF-8?q?=ED=95=AD=20=EB=A6=AC=EC=8A=A4=ED=8A=B8=20=EC=A1=B0=ED=9A=8C?= =?UTF-8?q?=EC=97=90=20id=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 공지사항 리스트 조회에 각 공지사항의 id 추가 --- .../com/sluv/server/domain/notice/dto/NoticeSimpleResDto.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/sluv/server/domain/notice/dto/NoticeSimpleResDto.java b/src/main/java/com/sluv/server/domain/notice/dto/NoticeSimpleResDto.java index f8912716..03aaeeb2 100644 --- a/src/main/java/com/sluv/server/domain/notice/dto/NoticeSimpleResDto.java +++ b/src/main/java/com/sluv/server/domain/notice/dto/NoticeSimpleResDto.java @@ -15,6 +15,8 @@ @NoArgsConstructor @Builder public class NoticeSimpleResDto { + @Schema(description = "공지사항 id") + private Long id; @Schema(description = "공지사항 제목") private String title; @Schema(description = "공지사항 공지일") @@ -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())