Documentation
¶
Overview ¶
*
- @Author: Resynz
- @Date: 2021/6/11 15:10
*
- @Author: Resynz
- @Date: 2021/6/11 14:55
*
- @Author: Resynz
- @Date: 2021/6/11 14:56
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AliMobilePusher ¶
type AliMobilePusher struct { Config *Config // contains filtered or unexported fields }
func NewAliMobilePusher ¶
func NewAliMobilePusher(conf *Config) (*AliMobilePusher, error)
func (*AliMobilePusher) Push ¶
func (s *AliMobilePusher) Push(param *PushParam) (*PushResponse, error)
推送
type PushParam ¶
type PushParam struct { Platform PushPlatform `json:"platform"` Type PushType `json:"type"` ApnsEnv ApnsEnv `json:"apns_env"` AppKey string `json:"app_key"` Title string `json:"title"` Body string `json:"body"` TargetType Target `json:"target_type"` TargetValue string `json:"target_value"` Ext string `json:"ext"` AndroidNotifyChannel string `json:"android_notify_channel"` AndroidNotificationXiaomiChannel string `json:"android_notification_xiaomi_channel"` AndroidNotificationVivoChannel string `json:"android_notification_vivo_channel"` AndroidNotificationHuaweiChannel string `json:"android_notification_huawei_channel"` }
推送参数
type PushPlatform ¶
type PushPlatform uint8
const ( PushPlatformIOS PushPlatform = iota PushPlatformAndroid )
type PushResponse ¶
type PushResponse struct { RequestId string `json:"request_id"` MessageId string `json:"message_id"` }
推送响应
Click to show internal directories.
Click to hide internal directories.