mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-04 17:15:58 +08:00
@@ -0,0 +1,14 @@
|
||||
package requestParams
|
||||
|
||||
type PushForward struct {
|
||||
NextType int `json:"nextType"`
|
||||
Scheme string `json:"scheme,omitempty"`
|
||||
}
|
||||
|
||||
func (m *PushForward) SetNextType(c int) {
|
||||
m.NextType = c
|
||||
}
|
||||
|
||||
func (m *PushForward) SetScheme(t string) {
|
||||
m.Scheme = t
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package requestParams
|
||||
|
||||
type PushNotify struct {
|
||||
Plats []int `json:"plats,omitempty"`
|
||||
IosProduction int `json:"iosProduction,omitempty"`
|
||||
Content string `json:"content,omitempty"`
|
||||
Type int `json:"type,omitempty"`
|
||||
}
|
||||
|
||||
func (n *PushNotify) SetPlats(plats []int) {
|
||||
n.Plats = plats
|
||||
|
||||
}
|
||||
|
||||
func (n *PushNotify) SetIosProduction(iosProduction int) {
|
||||
n.IosProduction = iosProduction
|
||||
|
||||
}
|
||||
|
||||
func (n *PushNotify) SetContent(content string) {
|
||||
n.Content = content
|
||||
}
|
||||
|
||||
func (n *PushNotify) SetType(Type int) {
|
||||
n.Type = Type
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package requestParams
|
||||
|
||||
type PushObj struct {
|
||||
Source interface{} `json:"source"`
|
||||
Appkey interface{} `json:"appkey"`
|
||||
PushTarget interface{} `json:"pushTarget,omitempty"`
|
||||
PushNotify interface{} `json:"pushNotify,omitempty"`
|
||||
PushForward interface{} `json:"pushForward,omitempty"`
|
||||
}
|
||||
|
||||
func (p *PushObj) SetSource(source string) {
|
||||
p.Source = source
|
||||
}
|
||||
|
||||
func (p *PushObj) SetAppkey(appkey string) {
|
||||
p.Appkey = appkey
|
||||
}
|
||||
|
||||
func (p *PushObj) SetPushTarget(no *PushTarget) {
|
||||
p.PushTarget = no
|
||||
}
|
||||
|
||||
func (p *PushObj) SetPushNotify(m *PushNotify) {
|
||||
p.PushNotify = m
|
||||
}
|
||||
func (p *PushObj) SetPushForward(o *PushForward) {
|
||||
p.PushForward = o
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package requestParams
|
||||
|
||||
type PushTarget struct {
|
||||
Target interface{} `json:"target,omitempty"`
|
||||
Alias []string `json:"alias,omitempty"`
|
||||
}
|
||||
|
||||
func (p *PushTarget) SetTarget(target int) {
|
||||
p.Target = target
|
||||
}
|
||||
func (p *PushTarget) SetAlias(alias []string) {
|
||||
p.Alias = alias
|
||||
}
|
||||
Reference in New Issue
Block a user