@@ -0,0 +1,19 @@
|
||||
package ru.soune.nocopy.dto.search;
|
||||
|
||||
import lombok.Data;
|
||||
import ru.soune.nocopy.dto.file.YandexSearchResponse;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class GlobalSearchFileResult {
|
||||
private String fileId;
|
||||
private String fileName;
|
||||
private String thumbnail;
|
||||
private String fileStatus;
|
||||
private List<YandexSearchResponse.ImageResult> images;
|
||||
private int page;
|
||||
private int pageSize;
|
||||
private int totalResults;
|
||||
private int totalPages;
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package ru.soune.nocopy.dto.search;
|
||||
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Builder
|
||||
@Data
|
||||
public class GlobalSearchStartRequest {
|
||||
private String searchType;
|
||||
|
||||
private List<String> fileIds;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package ru.soune.nocopy.dto.search;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class GlobalSearchStartResponse {
|
||||
private String taskId;
|
||||
|
||||
private String status;
|
||||
|
||||
private Integer totalFiles;
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package ru.soune.nocopy.dto.search;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class GlobalSearchStatusResponse {
|
||||
private String taskId;
|
||||
|
||||
private String status;
|
||||
|
||||
private String searchType;
|
||||
|
||||
private Integer progress;
|
||||
|
||||
private List<GlobalSearchFileResult> results;
|
||||
}
|
||||
Reference in New Issue
Block a user