feat(gift): 선물 푸시 이벤트를 추가한다
This commit is contained in:
@@ -25,7 +25,8 @@ enum class FcmDeepLinkValue(val value: String) {
|
|||||||
SERIES("series"),
|
SERIES("series"),
|
||||||
AUDITION("audition"),
|
AUDITION("audition"),
|
||||||
COMMUNITY("community"),
|
COMMUNITY("community"),
|
||||||
CHAT("chat")
|
CHAT("chat"),
|
||||||
|
GIFT_DETAIL("gift-detail")
|
||||||
}
|
}
|
||||||
|
|
||||||
class FcmEvent(
|
class FcmEvent(
|
||||||
@@ -50,7 +51,7 @@ class FcmEvent(
|
|||||||
val creatorId: Long? = null,
|
val creatorId: Long? = null,
|
||||||
val auditionId: Long? = null,
|
val auditionId: Long? = null,
|
||||||
val deepLinkValue: FcmDeepLinkValue? = null,
|
val deepLinkValue: FcmDeepLinkValue? = null,
|
||||||
val deepLinkId: Long? = null,
|
val deepLinkId: Any? = null,
|
||||||
val deepLinkCommentPostId: Long? = null,
|
val deepLinkCommentPostId: Long? = null,
|
||||||
val commentParentId: Long? = null,
|
val commentParentId: Long? = null,
|
||||||
val myMemberId: Long? = null,
|
val myMemberId: Long? = null,
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ class FcmService(
|
|||||||
creatorId: Long? = null,
|
creatorId: Long? = null,
|
||||||
auditionId: Long? = null,
|
auditionId: Long? = null,
|
||||||
deepLinkValue: FcmDeepLinkValue? = null,
|
deepLinkValue: FcmDeepLinkValue? = null,
|
||||||
deepLinkId: Long? = null,
|
deepLinkId: Any? = null,
|
||||||
deepLinkCommentPostId: Long? = null,
|
deepLinkCommentPostId: Long? = null,
|
||||||
chatType: String? = null
|
chatType: String? = null
|
||||||
) {
|
) {
|
||||||
@@ -118,7 +118,7 @@ class FcmService(
|
|||||||
|
|
||||||
private fun createDeepLink(
|
private fun createDeepLink(
|
||||||
deepLinkValue: FcmDeepLinkValue?,
|
deepLinkValue: FcmDeepLinkValue?,
|
||||||
deepLinkId: Long?,
|
deepLinkId: Any?,
|
||||||
deepLinkCommentPostId: Long?
|
deepLinkCommentPostId: Long?
|
||||||
): String? {
|
): String? {
|
||||||
return buildDeepLink(serverEnv, deepLinkValue, deepLinkId, deepLinkCommentPostId)
|
return buildDeepLink(serverEnv, deepLinkValue, deepLinkId, deepLinkCommentPostId)
|
||||||
@@ -194,7 +194,7 @@ class FcmService(
|
|||||||
fun buildDeepLink(
|
fun buildDeepLink(
|
||||||
serverEnv: String,
|
serverEnv: String,
|
||||||
deepLinkValue: FcmDeepLinkValue?,
|
deepLinkValue: FcmDeepLinkValue?,
|
||||||
deepLinkId: Long?,
|
deepLinkId: Any?,
|
||||||
deepLinkCommentPostId: Long? = null
|
deepLinkCommentPostId: Long? = null
|
||||||
): String? {
|
): String? {
|
||||||
if (deepLinkValue == null || deepLinkId == null) {
|
if (deepLinkValue == null || deepLinkId == null) {
|
||||||
@@ -222,7 +222,7 @@ class FcmService(
|
|||||||
creatorId: Long? = null,
|
creatorId: Long? = null,
|
||||||
auditionId: Long? = null,
|
auditionId: Long? = null,
|
||||||
deepLinkValue: FcmDeepLinkValue? = null,
|
deepLinkValue: FcmDeepLinkValue? = null,
|
||||||
deepLinkId: Long? = null,
|
deepLinkId: Any? = null,
|
||||||
deepLinkCommentPostId: Long? = null,
|
deepLinkCommentPostId: Long? = null,
|
||||||
deepLink: String? = null,
|
deepLink: String? = null,
|
||||||
chatType: String? = null
|
chatType: String? = null
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ enum class PushNotificationCategory(val code: String) {
|
|||||||
COMMUNITY("community"),
|
COMMUNITY("community"),
|
||||||
MESSAGE("message"),
|
MESSAGE("message"),
|
||||||
AUDITION("audition"),
|
AUDITION("audition"),
|
||||||
|
GIFT("gift"),
|
||||||
SYSTEM("system");
|
SYSTEM("system");
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
|
|||||||
Reference in New Issue
Block a user