dingding

package
v0.0.0-...-98a29f8 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendDingTalkMessage

func SendDingTalkMessage(webhookURL string, message DingTalkMessage) (string, error)

SendDingTalkMessage 发送消息到钉钉

Types

type DingTalkMessage

type DingTalkMessage struct {
	MsgType string `json:"msgtype"` // 消息类型,这里使用text
	Text    struct {
		Content string `json:"content"` // 消息内容
	} `json:"text"`
}

DingTalkMessage 定义发送给钉钉的消息结构

Jump to

Keyboard shortcuts

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