package com.weather.modules.sys.alert;

import org.springframework.context.ApplicationEvent;

/**
 * 通知撤回事件。由 {@link com.weather.modules.sys.service.impl.SysAlertServiceImpl#withdraw(Long)}
 * 发布，SSE 服务监听此事件并通知前端移除该通知。
 */
public class AlertWithdrawnEvent extends ApplicationEvent {

    private final Long alertId;

    public AlertWithdrawnEvent(Long alertId) {
        super(alertId);
        this.alertId = alertId;
    }

    public Long getAlertId() {
        return alertId;
    }
}
