messagepushservice

package
v1.2.8 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PushChatTextMessageRequest

type PushChatTextMessageRequest struct {
	api.BaseRequest
	AccessToken    string `json:"accessToken,omitempty" codec:"accessToken,omitempty"`       // 咚咚服务器动态分配的访问Token
	AspId          string `json:"aspid,omitempty" codec:"aspid,omitempty"`                   // 咚咚注册的应用服务提供商ID
	AccessId       string `json:"accessid,omitempty" codec:"accessid,omitempty"`             // 访问ID,可用于请求去重,在3分钟之内同一accessid的请求咚咚视为相同请求,只会处理第一个成功接收到的,通过uuid.toString()生成
	FromPin        string `json:"fromPin,omitempty" codec:"fromPin,omitempty"`               // 发送方标识
	FromApp        string `json:"fromApp,omitempty" codec:"fromApp,omitempty"`               // app标识
	FromClientType string `json:"fromClientType,omitempty" codec:"fromClientType,omitempty"` // 终端类型可填写成gw
	OpenIdSeller   string `json:"open_id_seller,omitempty" codec:"open_id_seller,omitempty"` // 发送方标识
	ToPin          string `json:"toPin,omitempty" codec:"toPin,omitempty"`                   // 接收方标识
	ToApp          string `json:"toApp,omitempty" codec:"toApp,omitempty"`                   // app标识
	ToClientType   string `json:"toClientType,omitempty" codec:"toClientType,omitempty"`     // 终端类型可不填
	OpenIdBuyer    string `json:"open_id_buyer,omitempty" codec:"open_id_buyer,omitempty"`   // 接收方标识
	Content        string `json:"content,omitempty" codec:"content,omitempty"`               // 文本内容
}

type PushChatTextMessageResponse

type PushChatTextMessageResponse struct {
	ErrorResp  *api.ErrorResponnse            `json:"error_response,omitempty" codec:"error_response,omitempty"`
	ReturnType *PushChatTextMessageReturnType `` /* 148-byte string literal not displayed */
}

func (PushChatTextMessageResponse) Error added in v1.1.1

func (PushChatTextMessageResponse) IsError added in v1.1.1

func (r PushChatTextMessageResponse) IsError() bool

type PushChatTextMessageReturnType

type PushChatTextMessageReturnType struct {
	Code          string `json:"code,omitempty" codec:"code,omitempty"`
	ErrMsg        string `json:"errmsg,omitempty" codec:"errmsg,omitempty"`
	MsgId         string `json:"msgid,omitempty" codec:"msgid,omitempty"`
	AccId         string `json:"accid,omitempty" codec:"accid,omitempty"`
	SendTimestamp string `json:"sendTimestamp,omitempty" codec:"sendTimestamp,omitempty"`
}

func PushChatTextMessage

新提供发送咚咚消息接口,方便打标pin

func (PushChatTextMessageReturnType) Error added in v1.1.1

func (PushChatTextMessageReturnType) IsError added in v1.1.1

func (r PushChatTextMessageReturnType) IsError() bool

Jump to

Keyboard shortcuts

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