dingtalk

package
v1.1.10 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DingTalk

type DingTalk struct {
	monitor.Handler
	Url string `json:"url"`
	// contains filtered or unexported fields
}

func NewDingTalk

func NewDingTalk(url string) *DingTalk

@desc @auth liuguoqiang 2020-12-07 @param @return

func (*DingTalk) SendMsg

func (dingTalk *DingTalk) SendMsg(body interface{}) ([]byte, error)

@desc 发送钉钉消息 @auth liuguoqiang 2020-12-07 @param @return

func (*DingTalk) SendTextMsg

func (dingTalk *DingTalk) SendTextMsg(ctx context.Context, content string) error

@desc 发送钉钉文本消息 @auth liuguoqiang 2020-12-07 @param @return

func (*DingTalk) WithAtMobiles

func (dingTalk *DingTalk) WithAtMobiles(atMobiles []string) *DingTalk

@desc @部分成员 @auth liuguoqiang 2020-12-07 @param @return

func (*DingTalk) WithIsAtAll

func (dingTalk *DingTalk) WithIsAtAll(isAtAll bool) *DingTalk

@desc @所有成员 @auth liuguoqiang 2020-12-07 @param @return

type TextMsg

type TextMsg struct {
	Msgtype string `json:"msgtype"`
	Text    struct {
		Content string `json:"content"`
	} `json:"text"`
	At struct {
		AtMobiles []string `json:"atMobiles"`
		IsAtAll   bool     `json:"isAtAll"`
	} `json:"at"`
}

Jump to

Keyboard shortcuts

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