# WeeklyMonthlyRevenueOtherValueDTO.java

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

    import cloud.wconnect.commonlib.annotation.validator.DigitsCustom;
    import lombok.Data;
    import org.hibernate.validator.constraints.Length;

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

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

        /**
         * 标题
         */
        @NotBlank(message = "The title cannot be blank")
        @Length(max = 50, message = "The title cannot exceed 50 characters")
        private String title;

        /**
         * 数值
         */
        @DigitsCustom(integer = 10, message = "The value is wrong format")
        private BigDecimal value;
    }