jestream-push-notification

This commit is contained in:
Nguyen Minh 2022-09-23 10:13:14 +07:00
parent e16a537ed2
commit b718162cd4
3 changed files with 30 additions and 0 deletions

8
jestream/config.go Normal file
View File

@ -0,0 +1,8 @@
package jestream
// StreamConfig ...
var StreamConfig = struct {
Notification string
}{
Notification: "Service_Notification",
}

8
jestream/notification.go Normal file
View File

@ -0,0 +1,8 @@
package jestream
// SubjectNotification ...
var SubjectNotification = struct {
PushNotifications string
}{
PushNotifications: "selly.pull.notification.push_notifications",
}

View File

@ -0,0 +1,14 @@
package model
// PayloadPushNotification ...
type PayloadPushNotification struct {
User string `json:"user"`
Type string `json:"type"`
TargetId string `json:"targetId"`
IsFromAdmin bool `json:"isFromAdmin"`
Category string `json:"category"`
Options struct {
Title string `json:"title"`
Content string `json:"content"`
} `json:"options"`
}