mirror of
				https://github.com/openimsdk/open-im-server.git
				synced 2025-11-04 03:13:15 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			293 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			293 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package requestBody
 | 
						|
 | 
						|
type Notification struct {
 | 
						|
	Alert   string   `json:"alert,omitempty"`
 | 
						|
	Android *Android `json:"android,omitempty"`
 | 
						|
	IOS     *Ios     `json:"ios,omitempty"`
 | 
						|
}
 | 
						|
 | 
						|
type Android struct {
 | 
						|
}
 | 
						|
 | 
						|
type Ios struct {
 | 
						|
}
 | 
						|
 | 
						|
func (n *Notification) SetAlert(alert string) {
 | 
						|
	n.Alert = alert
 | 
						|
}
 |