package com.zt.plat.module.qms.business.config.controller.vo;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
public class GenReportBody implements Serializable {

	private static final long serialVersionUID = 3042726851214984721L;
	
	@Schema(description = "报表id")
	private Long reportId;
	
	@Schema(description = "报表key")
	private String reportKey;
	
	@Schema(description = "报表数据url")
	private String dataUrl;
	
	@Schema(description = "接口是否加密")
	private Boolean isCrypto;
	
	@Schema(description = "报表类型：XLS|TXT|HTM|RTF|PDF|CSV|IMG")
	private String type;
	
	@Schema(description = "只有当报表类型为IMG时可用，图片类型：PNG|BMP|JPEG|TIFF")
	private String imgType;
	
	@Schema(description = "生成图片的DPI。对应打印机的DPI（Dots Per Inch，每英寸点数）是指打印机在每英寸内能够打印的墨点数量‌。DPI值越高，打印出的图像细节越丰富、色彩过渡越自然，打印精度也越高。常用‌203/300/400/600 DPI‌‌，具体根据打印机设置，默认为203。")
	private Integer imgDpi = 203;
	
	@Schema(description = "报表参数")
	private Map<String, String> reportParams;
	
	@Schema(description = "报表数据JSON格式")
	private String reportDataJson;

	public Map<String, String> getReportParams() {
		if (reportParams == null) {
			reportParams = new HashMap<>();
		}
		return reportParams;
	}
	
	
}
