diff --git a/src/main/java/yerong/wedle/notification/dto/NotificationResponse.java b/src/main/java/yerong/wedle/notification/dto/NotificationResponse.java index 0c65342..4cea2f0 100644 --- a/src/main/java/yerong/wedle/notification/dto/NotificationResponse.java +++ b/src/main/java/yerong/wedle/notification/dto/NotificationResponse.java @@ -12,6 +12,8 @@ public class NotificationResponse { private Long notificationId; + private String title; + private String type; private LocalDate notificationDate; private Long eventId; private List registrationTokens; diff --git a/src/main/java/yerong/wedle/notification/service/NotificationService.java b/src/main/java/yerong/wedle/notification/service/NotificationService.java index 53584a5..7265ea6 100644 --- a/src/main/java/yerong/wedle/notification/service/NotificationService.java +++ b/src/main/java/yerong/wedle/notification/service/NotificationService.java @@ -92,6 +92,8 @@ public void sendNotifications() { private NotificationResponse convertToResponse(Notification notification) { return NotificationResponse.builder() .notificationId(notification.getNotificationId()) + .title(notification.getEvent().getTitle()) + .type(notification.getEvent().getCalendarEventType().getDisplayName()) .notificationDate(notification.getNotificationDate()) .eventId(notification.getEvent().getId()) .registrationTokens(notification.getRegistrationTokens())