# HotelPriceMessagesEvent.java

    package cloud.wconnect.rateshop.springlistener;

    import lombok.Getter;
    import org.springframework.context.ApplicationEvent;
    import software.amazon.awssdk.services.sqs.model.Message;

    import java.util.List;

    /**
     * 自定义房价事件
     *
     * @author lichen
     * @date 2024/3/25
     */
    @Getter
    public class HotelPriceMessagesEvent extends ApplicationEvent {

        //发布事件时携带的参数
        private final List<Message> payLoad;

        public HotelPriceMessagesEvent(Object source, List<Message> payLoad) {
            super(source);
            this.payLoad = payLoad;
        }
    }