# WalkRateDTO.java

    package cloud.wconnect.frontoffice.pojo.dto.walkroomrequest;

    import cloud.wconnect.commonlib.annotation.validator.DigitsCustom;
    import lombok.Data;

    import jakarta.validation.constraints.*;
    import java.math.BigDecimal;

    /**
     * 设置walk-rate dto类
     *
     * @author lichen
     * @date 2023/7/19
     */
    @Data
    public class WalkRateDTO {

        /**
         * walk rate值
         */
        @NotNull(message = "The rate cannot be null")
        @DecimalMin(value = "0", message = "The rate must be greater than 0")
        @DigitsCustom(integer = 8, message = "The rate is wrong format")
        private BigDecimal rate;
        /**
         * 是否批量设置
         */
        @NotNull(message = "The isBatchSet cannot be null")
        private Boolean isBatchSet;

        /**
         * 入住日期（yyyyMMdd）
         */
        @Null(message = "The date must be null")
        private Integer date;

        /**
         * 资产id
         */
        @Null(message = "The propertyId must be null")
        private Integer propertyId;

    }