This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
package ru.soune.nocopy.dto.notification;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class ActivateNotificationRequest {
|
||||
private String authToken;
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package ru.soune.nocopy.dto.notification;
|
||||
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
public class ActiveNotificationsResponse {
|
||||
private List<NotificationDto> notifications;
|
||||
private long unreadCount;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package ru.soune.nocopy.dto.notification;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class MarkAsReadRequest {
|
||||
private List<Long> notificationIds;
|
||||
private String authToken;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package ru.soune.nocopy.dto.notification;
|
||||
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
public class MarkAsReadResponse {
|
||||
private boolean success;
|
||||
private int updatedCount;
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package ru.soune.nocopy.dto.notification;
|
||||
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import ru.soune.nocopy.entity.notification.NotificationStatus;
|
||||
import ru.soune.nocopy.entity.notification.NotificationType;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
public class NotificationDto {
|
||||
private Long id;
|
||||
private String message;
|
||||
private NotificationType type;
|
||||
private NotificationStatus status;
|
||||
private LocalDateTime createdAt;
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package ru.soune.nocopy.dto.notification;
|
||||
|
||||
import lombok.Data;
|
||||
import ru.soune.nocopy.entity.notification.NotificationStatus;
|
||||
import ru.soune.nocopy.entity.notification.NotificationType;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class NotificationListRequest {
|
||||
private int page = 0;
|
||||
private int size = 10;
|
||||
private String sortBy = "createdAt";
|
||||
private String sortDirection = "DESC";
|
||||
private List<NotificationType> types;
|
||||
private List<NotificationStatus> statuses;
|
||||
private String authToken;
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package ru.soune.nocopy.dto.notification;
|
||||
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
public class NotificationListResponse {
|
||||
private List<NotificationDto> notifications;
|
||||
private int currentPage;
|
||||
private int totalPages;
|
||||
private long totalElements;
|
||||
}
|
||||
Reference in New Issue
Block a user