package com.cf.imes.module.report.controller.admin.template.vo;

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

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import java.util.Map;

/**
 * @author Gqr
 * @since 2024/7/19 9:22
 */
@Data
@Schema(description = "管理后台 - 报表模板通用预览请求参数 Request VO")
public class ReportTemplateCommonPreviewReqVO {
    @Schema(description = "页码",example = "1")
    @Min(value = 1, message = "page.pageNo.min")
    private int pageIndex;

    @Schema(description = "报表模板编号")
    @NotNull(message = "report.template.preview.templateId.notNull")
    private Long templateId;

    /**
     * 表单参数
     */
    @Schema(description = "表单参数")
    @Size(max = 30, message = "report.template.preview.query.size")
    private Map<String, Object> query;

    /**
     * 表单对应组件唯一标识
     */
    @Schema(description = "表单对应组件唯一标识")
    @Size(max = 30, message = "report.template.preview.component.size")
    private Map<String, String> component;

    /**
     * 图表图片目前用于PDF导出
     */
    @Schema(description = "图表图片")
    @Size(max = 30, message = "report.template.preview.chartImages.size")
    private Map<String, String> chartImages;

}