interfaces

package
v0.0.0-...-cd4d371 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2020 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	From           string //发送消息的身份,短信为签名
	To             string //接收消息的目标
	Subject        string //消息标题(短信可以是签名)
	BodyTemplateID string //消息模板编号,编号为空,就是直发消息
	BodyContent    string //消息内容, 如果是模板消息,BodyContent是模板参数
}

Message 消息内容结构

type Sender

type Sender interface {
	//Send 发送短消息
	//  msg 消息内容结构
	//@return
	//  biznId 返回发送方(如果有)提供一个业务ID,用于追踪发送过程
	Send(ctx context.Context, m *Message) (bizId, name string, err error)
}

Sender 短消息发送方式

Jump to

Keyboard shortcuts

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