|
|
@@ -5,6 +5,7 @@ import "encoding/json" |
|
|
|
type Platform string |
|
|
|
|
|
|
|
const ( |
|
|
|
All Platform = "all" |
|
|
|
PlatformAndroid Platform = "android" |
|
|
|
PlatformIOS Platform = "ios" |
|
|
|
PlatformWinPhone Platform = "winphone" |
|
|
@@ -85,7 +86,7 @@ type PushOptions struct { |
|
|
|
|
|
|
|
type PushRequest struct { |
|
|
|
Cid string `json:"cid,omitempty"` |
|
|
|
Platform Platform `json:"platform"` |
|
|
|
Platform string `json:"platform"` |
|
|
|
Audience interface{} `json:"audience,omitempty"` |
|
|
|
Notification *PushNotification `json:"notification,omitempty"` |
|
|
|
Message *PushMessage `json:"message,omitempty"` |
|
|
|