Initial commit

This commit is contained in:
ChuXun
2026-01-28 23:56:33 +08:00
commit f98da73376
92 changed files with 8261 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
package com.smartoffice.notification;
import java.time.Instant;
public record NotificationDto(
Long id,
NotificationType type,
String title,
String content,
Instant readAt,
Instant createdAt
) {
public static NotificationDto from(Notification notification) {
return new NotificationDto(
notification.getId(),
notification.getType(),
notification.getTitle(),
notification.getContent(),
notification.getReadAt(),
notification.getCreatedAt()
);
}
}