intent
This commit is contained in:
parent
0ab848d838
commit
7fcd58e7f6
|
@ -39,7 +39,7 @@ type GetuiMessage struct {
|
|||
Title string
|
||||
Message string
|
||||
NotifyId string
|
||||
Payload string
|
||||
Intent string
|
||||
}
|
||||
|
||||
type Getui struct {
|
||||
|
@ -119,9 +119,9 @@ func (g *Getui) Push(req *GetuiMessage) error {
|
|||
"title": req.Title,
|
||||
"body": req.Message,
|
||||
"channel_level": 4,
|
||||
"click_type": "payload",
|
||||
"click_type": "intent",
|
||||
"notify_id": cast.ToInt64(req.NotifyId),
|
||||
"payload": req.Payload,
|
||||
"intent": req.Intent,
|
||||
},
|
||||
}
|
||||
params["push_channel"] = map[string]interface{}{
|
||||
|
@ -130,9 +130,9 @@ func (g *Getui) Push(req *GetuiMessage) error {
|
|||
"notification": map[string]interface{}{
|
||||
"title": req.Title,
|
||||
"body": req.Message,
|
||||
"click_type": "startapp",
|
||||
"click_type": "intent",
|
||||
"notify_id": cast.ToInt64(req.NotifyId),
|
||||
"payload": req.Payload,
|
||||
"intent": req.Intent,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue