meizu_channel

package
v1.2.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type ClickTypeInfo

type ClickTypeInfo struct {
	ClickType int    `json:"clickType"`
	Url       string `json:"url"`
}

type Extra

type Extra struct {
	Callback      string `json:"callback"`
	CallbackParam string `json:"callback.param"`
}

type NoticeBarInfo

type NoticeBarInfo struct {
	Title   string `json:"title"`
	Content string `json:"content"`
}

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 PushMessageRequest struct {
	AppId       string `json:"appId"`
	PushIds     string `json:"pushIds"`
	MessageJson string `json:"messageJson"`
	Sign        string `json:"sign"`
}

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"
   ]
 }
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL