diff --git a/push/getui.go b/push/getui.go index 5cddd62..985d948 100644 --- a/push/getui.go +++ b/push/getui.go @@ -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, }, }, },