From 128f470636ad51911326e0ef07cfcdd632aa27f8 Mon Sep 17 00:00:00 2001 From: becooq81 Date: Tue, 30 Jul 2024 16:56:52 +0900 Subject: [PATCH] fix: add notification id to response object --- .../org/poolc/api/notification/dto/NotificationResponse.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/org/poolc/api/notification/dto/NotificationResponse.java b/src/main/java/org/poolc/api/notification/dto/NotificationResponse.java index 4c9ada62..7cdf4281 100644 --- a/src/main/java/org/poolc/api/notification/dto/NotificationResponse.java +++ b/src/main/java/org/poolc/api/notification/dto/NotificationResponse.java @@ -11,6 +11,7 @@ @Getter @Setter(AccessLevel.PRIVATE) public class NotificationResponse { + private Long notificationId; private Boolean readStatus; private NotificationType notificationType; private LocalDateTime createdAt; @@ -18,6 +19,7 @@ public class NotificationResponse { public static NotificationResponse of(Notification notification) { NotificationResponse response = new NotificationResponse(); + response.setNotificationId(notification.getId()); response.setNotificationType(notification.getNotificationType()); response.setReadStatus(notification.getReadStatus()); response.setCreatedAt(notification.getCreatedAt());