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 定义发送给钉钉的消息结构
Click to show internal directories.
Click to hide internal directories.