# AlertMsgQuery.java

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

    import lombok.Data;
    import org.hibernate.validator.constraints.Range;

    /**
     * Alert 查询条件
     *
     * @author lichen
     * @date 2024/5/15
     */
    @Data
    public class AlertMsgQuery {

        /**
         * 起始id(不包含该id)
         */
        private Integer fromId;

        /**
         * 规则类型
         */
        @Range(min = 1, max = 4, message = "The rule must between in [1:price change 2:sold out 3:market demand 4:iwc level change]")
        private Integer rule;

        /**
         * 数据源ID
         */
        @Range(min = 1, max = 5, message = "The datasourceId must between in [1:Google 2:Expedia 3:Optimand 4:Merlin 5:Lighthouse]")
        private Integer datasourceId;

    }