update notification sound payload

This commit is contained in:
Sinh 2021-12-22 09:54:23 +07:00
parent 0872ce961d
commit 4b7991bbbf
1 changed files with 8 additions and 2 deletions

View File

@ -16,7 +16,13 @@ type PushRequest struct {
Users []string `json:"users"`
Label string `json:"label,omitempty"`
Category string `json:"category,omitempty"`
Sound string `json:"sound,omitempty"`
Sound *Sound `json:"sound,omitempty"`
}
// Sound ...
type Sound struct {
IOSFileName string `json:"iosFileName"`
AndroidChannel string `json:"androidChannel"`
}
// PushResponse ...
@ -34,7 +40,7 @@ type pushRequest struct {
Topic string `json:"topic"`
Label string `json:"label"`
Category string `json:"category"`
Sound string `json:"sound,omitempty"`
Sound *Sound `json:"sound,omitempty"`
}
// Query ...