Documentation ¶
Index ¶
- Constants
- func SendMessage(c *httpx.Client, token, secret, text string) error
- func SendMessageWithMap(c *httpx.Client, token, secret string, data map[string]interface{}) error
- func SendMessageWithReq(c *httpx.Client, token, secret string, req *MessageReq) error
- type MessageAt
- type MessageMarkdown
- type MessageReq
- type MessageResp
- type MessageText
Constants ¶
View Source
const ( MsgTypeText = "text" MsgTypeMarkdown = "markdown" )
View Source
const Addr = "https://oapi.dingtalk.com/robot/send"
Variables ¶
This section is empty.
Functions ¶
func SendMessageWithMap ¶
func SendMessageWithReq ¶
func SendMessageWithReq(c *httpx.Client, token, secret string, req *MessageReq) error
Types ¶
type MessageMarkdown ¶
type MessageReq ¶
type MessageReq struct { MsgType string `json:"msgtype"` At *MessageAt `json:"at,omitempty"` Text *MessageText `json:"text,omitempty"` Markdown *MessageMarkdown `json:"markdown,omitempty"` }
type MessageResp ¶
type MessageText ¶
type MessageText struct {
Content string `json:"content"`
}
Click to show internal directories.
Click to hide internal directories.