Documentation
¶
Index ¶
Constants ¶
View Source
const Endpoint string = "https://oapi.dingtalk.com/robot/send?access_token=%s"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ActionCard ¶
type ActionCard struct {
Text string `json:"text"`
Tile string `json:"title"`
HideAvatar string `json:"hideAvatar"`
BtnOrientation string `json:"btnOrientation"`
SingleTitle string `json:"singleTitle"`
SingleURL string `json:"singleURL"`
}
整体跳转ActionCard类型
type ActionCardBtns ¶
type ActionCardBtns struct {
Text string `json:"text"`
Tile string `json:"title"`
HideAvatar string `json:"hideAvatar"`
BtnOrientation string `json:"btnOrientation"`
Btns []Btns `json:"btns"`
}
独立跳转ActionCard类型
type DingError ¶
func NewDingError ¶
type FeedCardLink ¶
type FeedCardLink struct {
Links []Link `json:"links"`
}
type Link ¶
type Link struct {
Text string `json:"text"`
Title string `json:"title"`
PicUrl string `json:"picUrl"`
MessageUrl string `json:"messageUrl"`
}
link 类型详细
type MsgActionCard ¶
type MsgActionCard struct {
MsgType string `json:"msgtype"`
ActionCard ActionCard `json:"actionCard"`
}
整体跳转ActionCard类型
type MsgActionCardBtns ¶
type MsgActionCardBtns struct {
MsgType string `json:"msgtype"`
ActionCard ActionCardBtns `json:"actionCard"`
}
type MsgFeedCard ¶
type MsgFeedCard struct {
MsgType string `json:"msgtype"`
FeedCardLink FeedCardLink `json:"feedCard"`
}
FeedCard类型
Directories
¶
| Path | Synopsis |
|---|---|
|
Package httplib is used as http.Client Usage: import "github.com/astaxie/beego/httplib" b := httplib.Post("http://beego.me/") b.Param("username","astaxie") b.Param("password","123456") b.PostFile("uploadfile1", "httplib.pdf") b.PostFile("uploadfile2", "httplib.txt") str, err := b.String() if err != nil { t.Fatal(err) } fmt.Println(str) more docs http://beego.me/docs/module/httplib.md
|
Package httplib is used as http.Client Usage: import "github.com/astaxie/beego/httplib" b := httplib.Post("http://beego.me/") b.Param("username","astaxie") b.Param("password","123456") b.PostFile("uploadfile1", "httplib.pdf") b.PostFile("uploadfile2", "httplib.txt") str, err := b.String() if err != nil { t.Fatal(err) } fmt.Println(str) more docs http://beego.me/docs/module/httplib.md |
Click to show internal directories.
Click to hide internal directories.