feat(fcm): 푸시 알림함 저장 및 카테고리 조회를 지원한다

This commit is contained in:
2026-03-11 19:33:07 +09:00
parent f5c3c62e68
commit f69ace570a
23 changed files with 1309 additions and 12 deletions

View File

@@ -6,6 +6,7 @@ import kr.co.vividnext.sodalive.aws.s3.S3Uploader
import kr.co.vividnext.sodalive.common.SodaException
import kr.co.vividnext.sodalive.fcm.FcmEvent
import kr.co.vividnext.sodalive.fcm.FcmEventType
import kr.co.vividnext.sodalive.fcm.notification.PushNotificationCategory
import kr.co.vividnext.sodalive.i18n.LangContext
import kr.co.vividnext.sodalive.i18n.SodaMessageSource
import kr.co.vividnext.sodalive.member.Member
@@ -72,8 +73,10 @@ class MessageService(
applicationEventPublisher.publishEvent(
FcmEvent(
type = FcmEventType.SEND_MESSAGE,
category = PushNotificationCategory.MESSAGE,
titleKey = "message.fcm.title",
messageKey = "message.fcm.text_received",
senderMemberId = sender.id,
args = listOf(sender.nickname),
messageId = message.id
)
@@ -145,8 +148,10 @@ class MessageService(
applicationEventPublisher.publishEvent(
FcmEvent(
type = FcmEventType.SEND_MESSAGE,
category = PushNotificationCategory.MESSAGE,
titleKey = "message.fcm.title",
messageKey = "message.fcm.voice_received",
senderMemberId = sender.id,
args = listOf(sender.nickname),
messageId = message.id
)