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