message

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DingTalkRes

type DingTalkRes struct {
	Errcode int
	Errmsg  string
}

钉钉消息返回

type EmailRes

type EmailRes struct {
	Code int
	Msg  string
	Data string
}

邮件返回

type Message

type Message interface {
	//SendDingTalk 发送钉钉消息
	SendDingTalk(dingTalkURL string, bodyObj interface{}) (dingRes DingTalkRes, err error)
	// SendEmail 发送邮件
	SendEmail(subject, body string, to []string) (err error)
}

func NewMessage

func NewMessage() Message

Jump to

Keyboard shortcuts

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