Compare commits
	
		
			No commits in common. "master" and "develop" have entirely different histories.
		
	
	
		
							
								
								
									
										7
									
								
								const.go
								
								
								
								
							
							
						
						
									
										7
									
								
								const.go
								
								
								
								
							| 
						 | 
				
			
			@ -1,7 +0,0 @@
 | 
			
		|||
package notification
 | 
			
		||||
 | 
			
		||||
const (
 | 
			
		||||
	SortOrderDesc = "-order"
 | 
			
		||||
	SortOrderAsc  = "order"
 | 
			
		||||
	SortDefault   = "-lastPushAt"
 | 
			
		||||
)
 | 
			
		||||
							
								
								
									
										4
									
								
								model.go
								
								
								
								
							
							
						
						
									
										4
									
								
								model.go
								
								
								
								
							| 
						 | 
				
			
			@ -18,9 +18,6 @@ type PushRequest struct {
 | 
			
		|||
	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 ...
 | 
			
		||||
| 
						 | 
				
			
			@ -48,7 +45,6 @@ type Query struct {
 | 
			
		|||
	Status   string `json:"status"`
 | 
			
		||||
	Page     int64  `json:"page,omitempty"`
 | 
			
		||||
	Limit    int64  `json:"limit,omitempty"`
 | 
			
		||||
	Sort     string `json:"sort,omitempty"` // SortDefault, SortOrderDesc, SortOrderAsc
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type query struct {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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