From be06fe814ec3e9f3d1711618bc77bab2dd188421 Mon Sep 17 00:00:00 2001 From: HaYeon52 Date: Tue, 26 May 2026 17:00:29 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20Notification=20DTO=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../presentation/NotificationResponseDto.java | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/main/java/com/hanyang/lovepin/notification/presentation/NotificationResponseDto.java diff --git a/src/main/java/com/hanyang/lovepin/notification/presentation/NotificationResponseDto.java b/src/main/java/com/hanyang/lovepin/notification/presentation/NotificationResponseDto.java new file mode 100644 index 0000000..799a1fc --- /dev/null +++ b/src/main/java/com/hanyang/lovepin/notification/presentation/NotificationResponseDto.java @@ -0,0 +1,22 @@ +package com.hanyang.lovepin.notification.presentation; + +import com.hanyang.lovepin.notification.domain.Notification; +import lombok.Getter; +import java.time.LocalDateTime; + +@Getter +public class NotificationResponseDto { + private Long notificationId; + private String type; + private String message; + private Boolean isRead; + private LocalDateTime createdAt; + + public NotificationResponseDto(Notification notification) { + this.notificationId = notification.getNotificationId(); + this.type = notification.getType().name(); + this.message = notification.getMessage(); + this.isRead = notification.getIsRead(); + this.createdAt = notification.getCreatedAt(); + } +} \ No newline at end of file