# ImportLastYearDataDTO.java

    package cloud.wconnect.rateshop.pojo.dto.revenue;

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

    import jakarta.validation.constraints.NotNull;

    /**
     * DTO: Import LastYear Data
     * @author: yyt
     * 2024-03-25
     */
    @Data
    public class ImportLastYearDataDTO {

        /**
         * 年
         */
        @NotNull(message = "the year must not be null")
        private Integer year;

        /**
         * 月
         */
        @NotNull(message = "the month must not be null")
        private Integer month;

        /**
         * history and forecast 报告
         */
        @NotNull(message = "the file must not be null")
        private MultipartFile file;

        /**
         * 类型（1：opera，2：other）
         */
        @NotNull(message = "the type must not be null")
        @Range(min = 1, max = 2, message = "the type must in [1：opera，2：other]")
        private Integer type;

    }