Search in sources :

Example 1 with NotifyPublishEvent

use of com.hccake.ballcat.notify.event.NotifyPublishEvent in project ballcat by ballcat-projects.

the class AnnouncementServiceImpl method onAnnouncementPublish.

/**
 * 公告发布事件
 * @param announcement 公告信息
 */
private void onAnnouncementPublish(Announcement announcement) {
    NotifyInfo notifyInfo = NotifyInfoConverter.INSTANCE.fromAnnouncement(announcement);
    publisher.publishEvent(new NotifyPublishEvent(notifyInfo));
}
Also used : NotifyPublishEvent(com.hccake.ballcat.notify.event.NotifyPublishEvent) NotifyInfo(com.hccake.ballcat.notify.model.domain.NotifyInfo)

Aggregations

NotifyPublishEvent (com.hccake.ballcat.notify.event.NotifyPublishEvent)1 NotifyInfo (com.hccake.ballcat.notify.model.domain.NotifyInfo)1