Skip to content

Commit

Permalink
알림 타입 추가 (#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
subeenpark-io authored Nov 25, 2023
1 parent 4a50d33 commit 4f29157
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions core/src/main/kotlin/friend/service/FriendService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class FriendServiceImpl(
body = "'$fromUserNickname'님의 친구 요청을 수락하고 서로의 대표 시간표를 확인해보세요!",
urlScheme = UrlScheme.FRIENDS,
)
pushWithNotificationService.sendPushAndNotification(pushMessage, NotificationType.NORMAL, toUserId)
pushWithNotificationService.sendPushAndNotification(pushMessage, NotificationType.FRIEND, toUserId)
}

override suspend fun acceptFriend(friendId: String, toUserId: String) {
Expand All @@ -114,7 +114,7 @@ class FriendServiceImpl(
body = "'$toUserNickname'님과 친구가 되었어요.",
urlScheme = UrlScheme.FRIENDS,
)
pushWithNotificationService.sendPushAndNotification(pushMessage, NotificationType.NORMAL, fromUserId)
pushWithNotificationService.sendPushAndNotification(pushMessage, NotificationType.FRIEND, fromUserId)
}

override suspend fun updateFriendDisplayName(userId: String, friendId: String, displayName: String) {
Expand Down
3 changes: 2 additions & 1 deletion core/src/main/kotlin/notification/data/NotificationType.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ enum class NotificationType(
NORMAL(0),
COURSEBOOK(1),
LECTURE_UPDATE(2),
LECTURE_REMOVE(3);
LECTURE_REMOVE(3),
FRIEND(4);

companion object {
private val valueMap = NotificationType.values().associateBy { e -> e.value }
Expand Down

0 comments on commit 4f29157

Please sign in to comment.