@@ -5,8 +5,8 @@ import lombok.Data;
|
||||
@Data
|
||||
public class ViolationNotionRequest {
|
||||
private String token;
|
||||
private String fileId;
|
||||
private String message;
|
||||
private String action;
|
||||
private Long violationId;
|
||||
private Long notionId;
|
||||
private String message;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
package ru.soune.nocopy.dto.violation;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import java.time.LocalDateTime;
|
||||
@@ -12,8 +11,7 @@ public class ViolationNotionResponse {
|
||||
private LocalDateTime createdAt;
|
||||
private LocalDateTime updatedAt;
|
||||
private UserInfo user;
|
||||
@JsonIgnore
|
||||
private FileInfo file;
|
||||
private ViolationInfo violation;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@@ -25,8 +23,9 @@ public class ViolationNotionResponse {
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
public static class FileInfo {
|
||||
private String id;
|
||||
private String originalFileName;
|
||||
public static class ViolationInfo {
|
||||
private Long id;
|
||||
private String url;
|
||||
private String host;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,8 +8,9 @@ import java.util.List;
|
||||
@Data
|
||||
@Builder
|
||||
public class ViolationNotionsListResponse {
|
||||
private String fileId;
|
||||
private String fileName;
|
||||
private Long violationId;
|
||||
private String url;
|
||||
private String host;
|
||||
private int totalCount;
|
||||
private List<ViolationNotionResponse> notions;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user