update notification sound payload
This commit is contained in:
parent
0872ce961d
commit
4b7991bbbf
10
model.go
10
model.go
|
@ -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 ...
|
||||
|
|
Loading…
Reference in New Issue