msg

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AliParam

type AliParam struct {
	AccessKeyID     string
	AccessKeySecret string
	TemplateCode    string // sms参数:短信模板,后端填写
	TemplateParam   string // sms参数:短信内容,后端填写
	Phone           string // sms参数:手机号,前端获取
	SignName        string // sms参数:项目名称,后端填写
	Sig             string // 滑块验证参数:签名串,前端获取
	SessionID       string // 滑块验证参数:会话id,前端获取
	Token           string // 滑块验证参数:请求唯一标识,前端获取
	Scence          string // 滑块验证参数:场景标识,前端获取
	AppKey          string // 滑块验证参数:应用类型标识,后端填写
	RemoteIP        string // 滑块验证参数:客户端ip,后端填写
}

AliParam 阿里云参数

func (*AliParam) AuthenticateSig

func (ap *AliParam) AuthenticateSig() error

AuthenticateSig 滑块验证

func (*AliParam) SendMsg

func (ap *AliParam) SendMsg() error

SendMsg 发送信息

type EmailParam

type EmailParam struct {
	Addresser string   // 发件人邮箱/邮箱用户,后端填写
	Password  string   // 邮箱密码,后端填写
	Host      string   // 邮箱服务器,后端填写
	Port      int      // 邮箱端口,后端填写
	Addressee []string // 收件人,前端获取
	Subject   string   // 邮件主题
	Body      string   // 邮件正文
}

EmailParam 邮箱相关参数

func (*EmailParam) SendMail

func (ep *EmailParam) SendMail() error

SendMail 发送邮件

Jump to

Keyboard shortcuts

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