# CollectDTO.java

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

    import lombok.Data;

    import jakarta.validation.Valid;
    import jakarta.validation.constraints.NotBlank;
    import jakarta.validation.constraints.NotEmpty;
    import jakarta.validation.constraints.NotNull;
    import java.util.List;

    /**
     * 采集 dto
     *
     * @author lichen
     * @date 2023/6/10
     */
    @Data
    public class CollectDTO {

        /**
         * 国家id
         */
        @NotNull(message = "The country cannot be null")
        private Integer country;

        /**
         * 查询时间戳
         */
        @NotNull(message = "The queryDate cannot be null")
        private Long queryDate;

        /**
         * 签名
         */
        @NotBlank(message = "The sign cannot be blank")
        private String sign;

        /**
         * 节假日
         */
        @Valid
        @NotEmpty(message = "The holiday cannot be empty")
        private List<CollectHolidayDTO> holiday;

    }