# WeeklyMonthlyRevenueOtherRevenueDTO.java

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

    import lombok.Data;
    import org.hibernate.validator.constraints.Range;

    import jakarta.validation.Valid;
    import jakarta.validation.constraints.NotNull;
    import java.util.List;

    /**
     * DTO: Weekly Monthly Revenue Other Revenue
     *
     * @author zc
     * @date 2024/05/15
     */
    @Data
    public class WeeklyMonthlyRevenueOtherRevenueDTO {

        /**
         * 类型(1:Final; 2:Budget; 3:Last year)
         */
        @NotNull
        @Range(min = 1, max = 3, message = "The type must be in [1:Final; 2:Budget; 3:Last year]")
        private Integer type;

        /**
         * 数值
         */
        @Valid
        private List<WeeklyMonthlyRevenueOtherValueDTO> values;
    }