Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionCard ¶
type ActionCard struct { Title string `json:"title,omitempty"` Text string `json:"text,omitempty"` SingleTitle string `json:"singleTitle,omitempty"` SingleURL string `json:"singleURL,omitempty"` HideAvatar string `json:"hideAvatar,omitempty"` BtnOrientation string `json:"btnOrientation,omitempty"` Btns map[string]string `json:"btns,omitempty"` }
ActionCard 整体跳转actionCard类型
type Link ¶
type Link struct { Title string `json:"title,omitempty"` Text string `json:"title,omitempty"` MessageURL string `json:"messageURL,omitempty"` PicURL string `json:"picURL,omitempty"` }
Link feedCard类型 links 参数
type Message ¶
type Message struct { MsgType string `json:"msgtype"` At At `json:"at,omitempty"` Text *Text `json:"text,omitempty"` Markdown *Markdown `json:"markdown,omitempty"` Link *Link `json:"link,omitempty"` ActionCard *ActionCard `json:"actionCard,omitempty"` FeedCard *FeedCard `json:"feedCard,omitempty"` }
Message 基础消息结构
func NewActionCardMessage ¶
func NewActionCardMessage(card *ActionCard) *Message
NewActionCardMessage 新建 actionCard 类型消息
func NewLinkMessage ¶
NewLinkMessage 新建 link 类型消息
func NewMarkdownMessage ¶
NewMarkdownMessage 新建 markdown 类型消息
Click to show internal directories.
Click to hide internal directories.