init local code
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user