@@ -18,4 +18,20 @@ public class DocViewerRequest {
|
||||
|
||||
@JsonProperty("user_agent")
|
||||
private String userAgent;
|
||||
|
||||
@JsonProperty("page")
|
||||
private int page = 0;
|
||||
|
||||
@JsonProperty("size")
|
||||
private int size = 10;
|
||||
|
||||
@JsonProperty("created_at")
|
||||
private String sortBy = "createdAt";
|
||||
|
||||
@JsonProperty("sort_direction")
|
||||
private String sortDirection = "desc";
|
||||
|
||||
@JsonProperty("action")
|
||||
private String action;
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
package ru.soune.nocopy.dto.docviewer;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class DockViewResponse {
|
||||
|
||||
@JsonProperty("city")
|
||||
private String city;
|
||||
|
||||
@JsonProperty("country")
|
||||
private String country;
|
||||
|
||||
@JsonProperty("viewer")
|
||||
private String viewer;
|
||||
|
||||
@JsonProperty("document")
|
||||
private String document;
|
||||
|
||||
@JsonProperty("view_date")
|
||||
private LocalDateTime viewDate;
|
||||
}
|
||||
@@ -29,6 +29,8 @@ public class DockViewStatsResponse {
|
||||
|
||||
private List<DockViewStatsResponse> content;
|
||||
|
||||
private List<DockViewResponse> history;
|
||||
|
||||
private Integer pageNumber;
|
||||
|
||||
private Integer pageSize;
|
||||
|
||||
Reference in New Issue
Block a user