package com.weather.modules.sys.alert;

import org.springframework.context.ApplicationEvent;

/**
 * 通知删除事件。由 {@link com.weather.modules.sys.service.impl.SysAlertServiceImpl#delete(Long[])}
 * 发布，SSE 服务监听此事件并通知前端批量移除通知。
 */
public class AlertDeletedEvent extends ApplicationEvent {

    private final Long[] alertIds;

    public AlertDeletedEvent(Long[] alertIds) {
        super(alertIds);
        this.alertIds = alertIds;
    }

    public Long[] getAlertIds() {
        return alertIds;
    }
}
