From 4c7f41939a61f27ad41a7faec3922533a0d4f2d3 Mon Sep 17 00:00:00 2001 From: Daewoong Jeon Date: Mon, 27 Oct 2025 13:31:58 +0900 Subject: [PATCH] Create README.md --- meeting/README.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 meeting/README.md diff --git a/meeting/README.md b/meeting/README.md new file mode 100644 index 0000000..05763f9 --- /dev/null +++ b/meeting/README.md @@ -0,0 +1,25 @@ +# notification 메일 알림발송 + +아래와 같이 메일발송 Email List를 loop돌려서 event 객체를 생성한 후에 `publishNotificationRequest` 메소드를 통해 Event 메세지 발행하시면 됩니다. + +``` + // 각 참석자에게 개별 알림 이벤트 발행 + for (String participantEmail : participants) { + NotificationRequestEvent event = NotificationRequestEvent.builder() + .notificationType("MEETING_INVITATION") + .recipientEmail(participantEmail) + .recipientId(participantEmail) + .recipientName(participantEmail) + .title("회의 초대") + .message(String.format("'%s' 회의에 초대되었습니다. 일시: %s, 장소: %s", + title, startTime, location)) + .relatedEntityId(meetingId) + .relatedEntityType("MEETING") + .requestedBy(organizerId) + .requestedByName(organizerName) + .eventTime(LocalDateTime.now()) + .build(); + + publishNotificationRequest(event); + } +```