Versions in this module Expand all Collapse all v1 v1.0.6 Nov 18, 2020 v1.0.5 Nov 17, 2020 v1.0.4 Nov 17, 2020 v1.0.3 Nov 17, 2020 v1.0.2 Nov 17, 2020 v1.0.0 Nov 15, 2020 Changes in this version + const ACTIONCARD + const FEEDCARD + const LINK + const MARKDOWN + const TEXT + type ActionCardMsg struct + ActionCard actionCardModel + MsgType msgTypeType + func NewActionCardMsg(title, text string, opts ...ActionCardOption) *ActionCardMsg + func (a ActionCardMsg) Marshaler() []byte + 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 DingMap struct + func DingTalkMap() *DingMap + func (d *DingMap) Remove(val string) + func (d *DingMap) Set(val string, t MarkType) *DingMap + func (d *DingMap) Slice() []string + type DingTalk struct + func InitDingTalk(tokens []string, key 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, text string, 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 FeedCardMsg struct + FeedCard feedCardModel + MsgType msgTypeType + func NewFeedCardMsg(feedCard []FeedCardLinkModel) *FeedCardMsg + func (f FeedCardMsg) Marshaler() []byte + type LinkMsg struct + Link linkModel + MsgType msgTypeType + func NewLinkMsg(title, text, picURL, msgURL string) *LinkMsg + func (l LinkMsg) Marshaler() []byte + type MarkDownMsg struct + At atModel + Markdown markDownModel + MsgType msgTypeType + func NewDTMDMsg(title string, dtmdMap *DingMap, opts ...AtOption) *MarkDownMsg + func NewMarkDownMsg(title string, text interface{}, opts ...AtOption) *MarkDownMsg + func (m MarkDownMsg) Marshaler() []byte + 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{ ... } + type TextMsg struct + At atModel + MsgType msgTypeType + Text textModel + func NewTextMsg(content string, opts ...AtOption) *TextMsg + func (t TextMsg) Marshaler() []byte