# DbResolveReportExceptionDTO.java

    package cloud.wconnect.workperformance.pojo.dto.database.report;

    import jakarta.validation.constraints.NotNull;
    import lombok.Data;
    import org.hibernate.validator.constraints.Range;
    import org.springframework.web.multipart.MultipartFile;

    /**
     * DTO: Database Resolve Report Exception
     *
     * @author zc
     * @date 2025/12/02
     */
    @Data
    public class DbResolveReportExceptionDTO {

        /**
         * 1：忽略 2：有s3文件时，自动解决 3：手动上传文件解决
         */
        @NotNull(message = "The type cannot be null")
        @Range(min = 1, max = 3, message = "The category must be in [1:Ignore, 2:Auto resolve 3:Manual resolve]")
        private Integer type;

        /**
         * 来源
         */
        private String source;

        /**
         * 报告文件
         */
        private MultipartFile file;

        public static final int IGNORE = 1;
        public static final int AUTO_RESOLVE = 2;
        public static final int MANUAL_RESOLVE = 3;
    }