@@ -0,0 +1,12 @@
|
||||
package ru.soune.nocopy.dto.violation;
|
||||
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
public class DeleteNotionResponse {
|
||||
private Long notionId;
|
||||
private String message;
|
||||
private boolean deleted;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package ru.soune.nocopy.dto.violation;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class ViolationNotionRequest {
|
||||
private String token;
|
||||
private String fileId;
|
||||
private String message;
|
||||
private String action;
|
||||
private Long notionId;
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package ru.soune.nocopy.dto.violation;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
public class ViolationNotionResponse {
|
||||
private Long id;
|
||||
private String message;
|
||||
private LocalDateTime createdAt;
|
||||
private LocalDateTime updatedAt;
|
||||
private UserInfo user;
|
||||
private FileInfo file;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
public static class UserInfo {
|
||||
private Long id;
|
||||
private String fullName;
|
||||
private String email;
|
||||
}
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
public static class FileInfo {
|
||||
private String id;
|
||||
private String originalFileName;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package ru.soune.nocopy.dto.violation;
|
||||
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
public class ViolationNotionsListResponse {
|
||||
private String fileId;
|
||||
private String fileName;
|
||||
private int totalCount;
|
||||
private List<ViolationNotionResponse> notions;
|
||||
}
|
||||
Reference in New Issue
Block a user