You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
1.2 KiB
Java

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package com.supervision.pdfqaserver.dto;
import com.supervision.pdfqaserver.domain.PdfAnalysisOutput;
import lombok.Data;
/**
* 文档内容
*/
@Data
public class DocumentDTO {
/**
* 文档id
*/
private String id;
private Integer documentId;
private Integer sectionId;
private Integer pageNo;
/**
* 内容类型 0文本 1表格
*/
private String layoutType;
/**
* 内容在pdf页面中的顺序越小表示顺序越靠前
*/
private Integer layoutOrder;
private String title;
/**
* 文档内容
*/
private String content;
/**
* 文档页码
*/
private Integer pageNum;
public DocumentDTO() {
}
public DocumentDTO(PdfAnalysisOutput pdfAnalysisOutput) {
this.sectionId = pdfAnalysisOutput.getId();
this.documentId = pdfAnalysisOutput.getPdfId();
if (null != pdfAnalysisOutput.getLayoutType()) {
this.layoutType = pdfAnalysisOutput.getLayoutType().toString();
}
this.pageNo = pdfAnalysisOutput.getPageNo();
this.title = pdfAnalysisOutput.getTableTitle();
this.content = pdfAnalysisOutput.getContent();
this.layoutOrder = pdfAnalysisOutput.getOrder();
}
}