Documentation
¶
Index ¶
- Constants
- type BTns
- type FeedCardLink
- type Robot
- func (r Robot) SendActionCard(title, text, singleTitle, singleURL, btnOrientation string, bTns []BTns) error
- func (r Robot) SendFeedCard(links []FeedCardLink) error
- func (r Robot) SendLink(title, text, messageURL, picURL string) error
- func (r Robot) SendMarkdown(title, text string, atMobiles []string, isAtAll bool) error
- func (r Robot) SendText(content string, atMobiles []string, isAtAll bool) error
- type Roboter
Constants ¶
View Source
const ( MsgTypeText = "text" MsgTypeLink = "link" MsgTypeMarkdown = "markdown" MsgTypeActionCard = "actionCard" MsgTypeFeedCard = "feedCard" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FeedCardLink ¶
type Robot ¶
Robot 表示可以将消息发送到组的dingtalk自定义机器人
func (Robot) SendActionCard ¶
func (r Robot) SendActionCard(title, text, singleTitle, singleURL, btnOrientation string, bTns []BTns) error
SendActionCard 发送action card类型消息。
func (Robot) SendFeedCard ¶
func (r Robot) SendFeedCard(links []FeedCardLink) error
SendFeedCard 发送feed card类型消息.
func (Robot) SendMarkdown ¶
SendMarkdown 发送markdown类型消息。
type Roboter ¶
type Roboter interface { SendText(content string, atMobiles []string, isAtAll bool) error SendLink(title, text, messageURL, picURL string) error SendMarkdown(title, text string, atMobiles []string, isAtAll bool) error SendActionCard(title, text, singleTitle, singleURL, btnOrientation string, bTns []BTns) error SendFeedCard(links []FeedCardLink) error }
Roboter 是由Robot实现的接口,可以发送多种类型的消息。
Click to show internal directories.
Click to hide internal directories.