mirror of
				https://github.com/openimsdk/open-im-server.git
				synced 2025-11-04 11:22:10 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
		
			525 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			525 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package requestBody
 | 
						|
 | 
						|
type PushObj struct {
 | 
						|
	Platform     interface{} `json:"platform"`
 | 
						|
	Audience     interface{} `json:"audience"`
 | 
						|
	Notification interface{} `json:"notification,omitempty"`
 | 
						|
	Message      interface{} `json:"message,omitempty"`
 | 
						|
}
 | 
						|
 | 
						|
func (p *PushObj) SetPlatform(pf *Platform) {
 | 
						|
	p.Platform = pf.Os
 | 
						|
}
 | 
						|
 | 
						|
func (p *PushObj) SetAudience(ad *Audience) {
 | 
						|
	p.Audience = ad.Object
 | 
						|
}
 | 
						|
 | 
						|
func (p *PushObj) SetNotification(no *Notification) {
 | 
						|
	p.Notification = no
 | 
						|
}
 | 
						|
 | 
						|
func (p *PushObj) SetMessage(m *Message) {
 | 
						|
	p.Message = m
 | 
						|
}
 |