diff --git a/js/consumer/selly.go b/js/consumer/selly.go index 975cb5b..103d030 100644 --- a/js/consumer/selly.go +++ b/js/consumer/selly.go @@ -5,8 +5,10 @@ var Selly = struct { PushNotification string UpdateSellerAffiliateStatistic string CheckAnDInsertCashflowBySeller string + SubscriberTopic string }{ PushNotification: "PULL_PUSH_NOTIFICATION", UpdateSellerAffiliateStatistic: "PULL_UPDATE_SELLER_AFFILIATE_STATISTIC", CheckAnDInsertCashflowBySeller: "PULL_CHECK_AND_INSERT_CASHFLOW_BY_SELLER", + SubscriberTopic: "PULL_SUBSCRIBER_TOPIC", } diff --git a/js/model/selly.go b/js/model/selly.go index 68d3342..8f5e19c 100644 --- a/js/model/selly.go +++ b/js/model/selly.go @@ -63,3 +63,11 @@ type CashFlowOptions struct { CampaignID string `json:"campaignId,omitempty"` CampaignName string `json:"campaignName,omitempty"` } + +// SubscriberNotificationTopic ... +type SubscriberNotificationTopic struct { + User string `json:"user"` + Topic string `json:"topic"` + DeviceId string `json:"deviceId"` + FCMToken string `json:"fcmToken"` +} diff --git a/js/subject/selly.go b/js/subject/selly.go index 2f665bb..668f249 100644 --- a/js/subject/selly.go +++ b/js/subject/selly.go @@ -14,8 +14,10 @@ var Selly = struct { PushNotification string UpdateSellerAffiliateStatistic string CheckAnDInsertCashflowBySeller string + SubscriberTopic string }{ PushNotification: getSellyValue("push_notifications"), UpdateSellerAffiliateStatistic: getSellyValue("update_seller_affiliate_statistic"), CheckAnDInsertCashflowBySeller: getSellyValue("check_and_insert_cashflow_statistic"), + SubscriberTopic: getSellyValue("subscriber_topic"), }