# EventQuery.java

    package cloud.wconnect.rateshop.pojo.query.rateshop;

    import lombok.Data;

    import jakarta.validation.constraints.NotBlank;
    import jakarta.validation.constraints.Pattern;
    import java.util.List;

    /**
     * 事件查询类
     *
     * @author lichen
     * @date 2023/6/19
     */
    @Data
    public class EventQuery {

        /**
         * 起始日期
         */
        @NotBlank(message = "The fromDate cannot be blank")
        @Pattern(regexp = "^\\d{4}-\\d{2}-\\d{2}$", message = "The fromDate format is incorrect, right format is [yyyy-MM-dd]")
        private String fromDate;

        /**
         * 结束日期
         */
        @NotBlank(message = "The toDate cannot be blank")
        @Pattern(regexp = "^\\d{4}-\\d{2}-\\d{2}$", message = "The fromDate format is incorrect, right format is [yyyy-MM-dd")
        private String toDate;

        /**
         * 事件源url ID集合
         */
        private List<Integer> urlId;

        /**
         * 手动创建的事件
         */
        public static final int MANUAL_CREATE_EVENT = 0;
        /**
         * 共享的事件
         */
        public static final int SHARE_EVENT = -1;

    }