Versions in this module Expand all Collapse all v1 v1.0.4 Sep 2, 2021 v1.0.3 Sep 2, 2021 v1.0.2 Sep 2, 2021 Changes in this version + const ACTION_CARD + const FEED_CARD + const LINK + const MARKDOWN + const TEXT + func AddBlue(text string) string + func AddGold(text string) string + func AddGreen(text string) string + func AddH1(text string) string + func AddH2(text string) string + func AddH3(text string) string + func AddH4(text string) string + func AddH5(text string) string + func AddH6(text string) string + func AddRed(text string) string + func DingMap() *dingMap + func NewActionCardMsg(title, text string, opts ...ActionCardOption) *actionCardMsg + func NewDTMDMsg(title string, dtmdMap *dingMap, opts ...AtOption) *markDownMsg + func NewFeedCardMsg(feedCard []FeedCardLinkModel) *feedCardMsg + func NewLinkMsg(title, text, picUrl, msgUrl string) *linkMsg + func NewMarkDownMsg(title string, text interface{}, opts ...AtOption) *markDownMsg + func NewTextMsg(content string, opts ...AtOption) *textMsg + type ActionCardMultiBtnModel struct + ActionURL string + Title string + type ActionCardOption interface + func WithCardBtnVertical() ActionCardOption + func WithCardBtns(btns []ActionCardMultiBtnModel) ActionCardOption + func WithCardSingleTitle(title string) ActionCardOption + func WithCardSingleURL(url string) ActionCardOption + type AtOption interface + func WithAtAll() AtOption + func WithAtMobiles(mobiles []string) AtOption + type DingTalk struct + func InitDingTalk(token string) *DingTalk + func InitDingTalkWithSecret(token string, secret string) *DingTalk + func (d *DingTalk) OutGoing(r io.Reader) (outGoingMsg OutGoingModel, err error) + func (d *DingTalk) SendActionCardMessage(title, text string, opts ...ActionCardOption) error + func (d *DingTalk) SendActionCardMessageBySlice(title string, textList []string, opts ...ActionCardOption) error + func (d *DingTalk) SendDTMDMessage(title string, dtmdMap *dingMap, opt ...AtOption) error + func (d *DingTalk) SendFeedCardMessage(feedCard []FeedCardLinkModel) error + func (d *DingTalk) SendLinkMessage(title, text, picUrl, msgUrl string) error + func (d *DingTalk) SendMarkDownMessage(title string, text Format, opts ...AtOption) error + func (d *DingTalk) SendTextMessage(content string, opt ...AtOption) error + func (d DingTalk) SendMarkDownMessageBySlice(title string, textList []string, opts ...AtOption) error + type FeedCardLinkModel struct + MessageURL string + PicURL string + Title string + type Format interface + AddImage func(url string) + AddImages func(urls []string) + AddKeyValue func(title string, value interface{}) + AddText func(text string, color ...interface{}) + AddTextUrl func(text string, hrefs map[string]string) + GetContext func() string + func NewConText() Format + type MarkType string + const BLUE + const GOLD + const GREEN + const H1 + const H2 + const H3 + const H4 + const H5 + const H6 + const N + const RED + type OutGoingModel struct + AtUsers []struct{ ... } + ChatbotUserID string + ConversationID string + ConversationTitle string + ConversationType string + CreateAt int64 + IsAdmin bool + IsInAtList bool + MsgID string + Msgtype string + SceneGroupCode string + SenderID string + SenderNick string + SessionWebhook string + SessionWebhookExpiredTime int64 + Text struct{ ... }