add option save notification
This commit is contained in:
parent
58c1ec0f8e
commit
5a37fba851
21
model.go
21
model.go
|
@ -10,16 +10,17 @@ type Config struct {
|
|||
|
||||
// PushRequest ...
|
||||
type PushRequest struct {
|
||||
Title string `json:"title"`
|
||||
Body string `json:"body"`
|
||||
Data string `json:"data"`
|
||||
Users []string `json:"users"`
|
||||
Label string `json:"label,omitempty"`
|
||||
Category string `json:"category,omitempty"`
|
||||
Sound *Sound `json:"sound,omitempty"`
|
||||
Link string `json:"link"` // for webpush
|
||||
Order int `json:"order"` // for sort
|
||||
DisplayUntil int64 `json:"displayUntil"` // time.Unix
|
||||
Title string `json:"title"`
|
||||
Body string `json:"body"`
|
||||
Data string `json:"data"`
|
||||
Users []string `json:"users"`
|
||||
Label string `json:"label,omitempty"`
|
||||
Category string `json:"category,omitempty"`
|
||||
Sound *Sound `json:"sound,omitempty"`
|
||||
Link string `json:"link"` // for webpush
|
||||
Order int `json:"order"` // for sort
|
||||
DisplayUntil int64 `json:"displayUntil"` // time.Unix
|
||||
SaveNotification bool `json:"saveNotification"`
|
||||
}
|
||||
|
||||
// Sound ...
|
||||
|
|
Loading…
Reference in New Issue