# UpdateHurdlerPointDTO.java

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

    import cloud.wconnect.commonlib.annotation.validator.DigitsCustom;
    import lombok.Data;
    import org.springframework.format.annotation.DateTimeFormat;

    import jakarta.validation.constraints.NotBlank;
    import jakarta.validation.constraints.Pattern;
    import java.math.BigDecimal;

    /**
     * DTO: Update Hurdler Point
     *
     * @author: yyt
     * 2024-03-26
     */
    @Data
    public class UpdateHurdlerPointDTO {

        /**
         * 数据日期（YYYY-MM-DD）
         */
        @NotBlank(message = "the date must not be blank")
        @Pattern(regexp = "\\d{4}-\\d{2}-\\d{2}", message = "the date format error, right format is [YYYY-MM-DD]")
        private String date;

        /**
         * 限制：整数10位，小数位根据国际化配置（显示精度）限制
         */
        @DigitsCustom(integer = 10, message = "the value is wrong format")
        private BigDecimal value;

    }