Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPushClient ¶
func NewPushClient(conf *setting.ConfigMeizu) (setting.PushClientInterface, error)
Types ¶
type ClickTypeInfo ¶
type NoticeBarInfo ¶
type Payload ¶
type Payload struct { NoticeBarInfo *NoticeBarInfo `json:"noticeBarInfo"` ClickTypeInfo *ClickTypeInfo `json:"clickTypeInfo"` Extra *Extra `json:"extra"` }
type PushClient ¶
type PushClient struct {
// contains filtered or unexported fields
}
func (*PushClient) GetAccessToken ¶
func (p *PushClient) GetAccessToken(ctx context.Context) (interface{}, error)
func (*PushClient) PushNotice ¶
func (p *PushClient) PushNotice(ctx context.Context, pushRequest *setting.PushMessageRequest) (interface{}, error)
type PushMessageRequest ¶
type PushMessageResponse ¶
type PushMessageResponse struct { Code string `json:"code"` // 必选,返回码 Message string `json:"message"` //可选,返回消息,网页端接口出现错误时使用此消息展示给用户,手机端可忽略此消息,甚至服务端不传输此消息 Value map[string]interface{} `json:"value"` // 必选,返回结果 Redirect string `json:"redirect"` //可选, returnCode=300 重定向时,使用此URL重新请求 MsgId string `json:"msgId"` //可选,消息推送msgId }
PushMessageResponse 魅族
{ "code": "200", "message": "", "msgId": "NS20190704153256153_0_11579908_1_3", "redirect": "", "success": true, "value": { "110002": [ "ULY6c596e6a7d5b714a475a60527c6b5f7f655a6d6370" ] } }
Click to show internal directories.
Click to hide internal directories.