Merge pull request 'add-opts-not-save-notification' (#2) from add-opts-not-save-notification into master

Reviewed-on: #2
This commit is contained in:
sinhluu 2023-03-28 03:02:38 +00:00
commit b1a0b41a2b
2 changed files with 12 additions and 11 deletions

View File

@ -10,16 +10,17 @@ type Config struct {
// PushRequest ... // PushRequest ...
type PushRequest struct { type PushRequest struct {
Title string `json:"title"` Title string `json:"title"`
Body string `json:"body"` Body string `json:"body"`
Data string `json:"data"` Data string `json:"data"`
Users []string `json:"users"` Users []string `json:"users"`
Label string `json:"label,omitempty"` Label string `json:"label,omitempty"`
Category string `json:"category,omitempty"` Category string `json:"category,omitempty"`
Sound *Sound `json:"sound,omitempty"` Sound *Sound `json:"sound,omitempty"`
Link string `json:"link"` // for webpush Link string `json:"link"` // for webpush
Order int `json:"order"` // for sort Order int `json:"order"` // for sort
DisplayUntil int64 `json:"displayUntil"` // time.Unix DisplayUntil int64 `json:"displayUntil"` // time.Unix
SaveNotification bool `json:"saveNotification"`
} }
// Sound ... // Sound ...

View File

@ -9,7 +9,7 @@ import (
) )
// version specify current version of client // version specify current version of client
const version = "1.0.3" const version = "1.0.4"
const ( const (
SendByTopic = "topic" SendByTopic = "topic"