Merge branch 'feature/seller-by-id' into develop

This commit is contained in:
Nguyen Minh 2022-09-23 10:14:24 +07:00
commit 36ad0b4972
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"`
}