package com.yunhai.notice.common.event; import java.util.List; /** * 通知发布事件。在通知状态从草稿变更为已发布时发布, * 由 {@code MessageService} 监听并在事务提交后异步推送消息(短信/App/角标等)。 */ public class NoticePublishedEvent { private final Integer noticeId; private final String title; private final List receiverAccounts; public NoticePublishedEvent(Integer noticeId, String title, List receiverAccounts) { this.noticeId = noticeId; this.title = title; this.receiverAccounts = receiverAccounts; } public Integer getNoticeId() { return noticeId; } public String getTitle() { return title; } public List getReceiverAccounts() { return receiverAccounts; } }