# StayLengthAbscissaEnum.java

    package cloud.wconnect.rateshop.cons.booking;

    import com.google.common.collect.Lists;
    import lombok.AllArgsConstructor;
    import lombok.Getter;

    import java.util.List;

    /**
     * Enum: Stay Length Abscissa
     *
     * @author: yyt
     * 2024-07-23
     */
    @Getter
    @AllArgsConstructor
    public enum StayLengthAbscissaEnum {

        /**
         * 1 day
         */
        ONE_DAY(1, BookingAbscissaCons.FIXED, Lists.newArrayList(1)),

        /**
         * 2 day
         */
        TWO_DAY(2, BookingAbscissaCons.FIXED, Lists.newArrayList(2)),

        /**
         * 3 day
         */
        THREE_DAY(3, BookingAbscissaCons.FIXED, Lists.newArrayList(3)),

        /**
         * 4 day
         */
        FOUR_DAY(4, BookingAbscissaCons.FIXED, Lists.newArrayList(4)),

        /**
         * 5-7 day
         */
        FIVE_SEVEN_DAY(5, BookingAbscissaCons.RANGE, Lists.newArrayList(5, 7)),

        /**
         * 8-30 day
         */
        EIGHT_THIRTY_DAY(6, BookingAbscissaCons.RANGE, Lists.newArrayList(8, 30)),

        /**
         * 31 - 60 day
         */
        THIRTY_SIXTY_DAY(7, BookingAbscissaCons.RANGE, Lists.newArrayList(31, 60)),

        /**
         * 大于 60 day
         */
        GREATER_SIXTY_DAY(8, BookingAbscissaCons.GREATER, Lists.newArrayList(60));

        private final int abscissa;

        private final int type;

        private final List<Integer> valueRange;

    }