package com.njcn.gather.report.pojo.param;

import com.njcn.web.pojo.param.BaseParam;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.web.multipart.MultipartFile;

@Data
public class ReportParam {

    @ApiModelProperty(value = "报告模板名称", required = true)
    private String name;

    @ApiModelProperty(value = "版本号", required = true)
    private String version;

    @ApiModelProperty(value = "模式id", required = true)
    private String pattern;

    @ApiModelProperty(value = "描述信息", required = true)
    private String description;

    @ApiModelProperty(value = "基础模板文件", required = true)
    private MultipartFile baseFile;

    @ApiModelProperty(value = "检测项模板文件", required = true)
    private MultipartFile detailFile;

    @Data
    @EqualsAndHashCode(callSuper = true)
    public static class QueryParam extends BaseParam {
        @ApiModelProperty(value = "报告模板名称")
        private String name;

        @ApiModelProperty(value = "版本号")
        private String version;

        @ApiModelProperty(value = "模式id", required = true)
        private String pattern;
    }

    @Data
    @EqualsAndHashCode(callSuper = true)
    public static class UpdateParam extends ReportParam {
        @ApiModelProperty(value = "id", required = true)
        private String id;
    }
}
