admin-push-notification-supplier #1
			
				
			
		
		
		
	
							
								
								
									
										19
									
								
								model.go
								
								
								
								
							
							
						
						
									
										19
									
								
								model.go
								
								
								
								
							| 
						 | 
					@ -10,15 +10,16 @@ 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
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Sound ...
 | 
					// Sound ...
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue