Compare commits
	
		
			No commits in common. "master" and "update-notification" have entirely different histories.
		
	
	
		
			master
			...
			update-not
		
	
		
							
								
								
									
										21
									
								
								model.go
								
								
								
								
							
							
						
						
									
										21
									
								
								model.go
								
								
								
								
							| 
						 | 
				
			
			@ -10,17 +10,16 @@ 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
 | 
			
		||||
	SaveNotification bool     `json:"saveNotification"`
 | 
			
		||||
	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
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Sound ...
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -9,7 +9,7 @@ import (
 | 
			
		|||
)
 | 
			
		||||
 | 
			
		||||
// version specify current version of client
 | 
			
		||||
const version = "1.0.4"
 | 
			
		||||
const version = "1.0.3"
 | 
			
		||||
 | 
			
		||||
const (
 | 
			
		||||
	SendByTopic = "topic"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue