# DataBO.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 jakarta.validation.Valid;
    import jakarta.validation.constraints.NotBlank;
    import jakarta.validation.constraints.NotEmpty;
    import jakarta.validation.constraints.Pattern;
    import java.util.List;

    /**
     * BO: Date
     *
     * @author yyt
     * 2023/7/27
     */
    @Data
    public class DataBO<T> {

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

        /**
         * 资产
         */
        @NotBlank(message = "the property must not be empty", groups = {Addition.class, General.class})
        private String property;

        /**
         * 入住信息
         */
        @Valid
        @NotEmpty(message = "the data must not be empty", groups = {Addition.class, General.class})
        private List<T> data;

    }