# DrawerInitConfigDTO.java

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

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

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

    /**
     * @author lichen
     * @description Drawer Count Amount Config Dto
     * @date 2023/4/6 10:10
     */
    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public class DrawerInitConfigDTO {

        /**
         * init amount
         */
        @NotNull(message = "the drawerInit must not be null")
        @DigitsCustom(integer = 8, message = "The drawerInit is wrong format")
        @DecimalMin(value = "0", message = "The drawerInit must be greater than 0")
        private BigDecimal drawerInit;

    }