33 lines
844 B
Java
33 lines
844 B
Java
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<String> receiverAccounts;
|
|
|
|
public NoticePublishedEvent(Integer noticeId, String title, List<String> receiverAccounts) {
|
|
this.noticeId = noticeId;
|
|
this.title = title;
|
|
this.receiverAccounts = receiverAccounts;
|
|
}
|
|
|
|
public Integer getNoticeId() {
|
|
return noticeId;
|
|
}
|
|
|
|
public String getTitle() {
|
|
return title;
|
|
}
|
|
|
|
public List<String> getReceiverAccounts() {
|
|
return receiverAccounts;
|
|
}
|
|
}
|