# CrawLogBO.java

    package cloud.wconnect.frontoffice.pojo.bo.clc;

    import cloud.wconnect.frontoffice.pojo.group.Addition;
    import cloud.wconnect.frontoffice.pojo.group.General;
    import lombok.Data;
    import org.hibernate.validator.constraints.Range;

    import jakarta.validation.constraints.NotBlank;
    import jakarta.validation.constraints.NotNull;
    import jakarta.validation.constraints.Pattern;

    /**
     * BO: Craw Log
     *
     * @author yyt
     * 2023/7/31
     */
    @Data
    public class CrawLogBO {

        /**
         * 资产标识
         */
        @NotBlank(message = "the property must not be blank", groups = Addition.class)
        private String property;

        /**
         * 日期，格式（2023-07-01）
         */
        @NotBlank(message = "theDate must not be blank", groups = {Addition.class, General.class})
        @Pattern(regexp = "^\\d{4}-\\d{2}-\\d{2}$", message = "theDate format is incorrect, right format is [yyyy-MM-dd]", groups = {Addition.class, General.class})
        private String theDate;

        /**
         * 抓取平台（2:CLC）
         */
        @NotNull(message = "the reportType must not be null", groups = {Addition.class, General.class})
        @Range(min = 2, max = 2, message = "the reportType must be 2:CLC", groups = {Addition.class, General.class})
        private Integer reportType;

        /**
         * 爬取成功
         */
        @NotNull(message = "the isSuccess must not be null", groups = {Addition.class, General.class})
        private Boolean isSuccess;

    }