# CustomerScoreDTO.java

    package cloud.wconnect.workperformance.pojo.dto.monthlyreport.customersatisfaction;

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

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

    /**
     * 客户评分
     *
     * @author lichen
     * @date 2023/9/4
     */
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public class CustomerScoreDTO {

        /**
         * 当月得分
         */
        @NotNull(message = "The score cannot be null")
        @DigitsCustom(integer = 4, message = "The score is wrong format")
        private BigDecimal score;

        /**
         * 理由
         */
        @NotNull(message = "The reason cannot be null")
        private String reason;

    }