代码拉取完成,页面将自动刷新
package dingtalkrobot
// msgTypeType msgTypeType
type msgTypeType string
const (
// TEXT 文本(text)
TEXT msgTypeType = "text"
// LINK 链接(link)
LINK msgTypeType = "link"
// MARKDOWN MARKDOWN
MARKDOWN msgTypeType = "markdown"
// ACTIONCARD ActionCard 整体跳转 独立跳转
ACTIONCARD msgTypeType = "actionCard"
// FEEDCARD FEEDCARD
FEEDCARD msgTypeType = "feedCard"
)
// textModel textModel
type textModel struct {
Content string `json:"content,omitempty"`
}
// atModel atModel
type atModel struct {
AtMobiles []string `json:"atMobiles,omitempty"`
IsAtAll bool `json:"isAtAll,omitempty"`
}
// linkModel linkModel
type linkModel struct {
Text string `json:"text,omitempty"`
Title string `json:"title,omitempty"`
PicURL string `json:"picUrl,omitempty"`
MessageURL string `json:"messageUrl,omitempty"`
}
// markDownModel markDownModel
type markDownModel struct {
Title string `json:"title,omitempty"`
Text string `json:"text,omitempty"`
}
// actionCardBtnOrientationType actionCardBtnOrientationType
type actionCardBtnOrientationType string
const (
horizontal actionCardBtnOrientationType = "0" // 横向
vertical actionCardBtnOrientationType = "1" // 竖向
)
// actionCardModel actionCardModel
type actionCardModel struct {
Title string `json:"title,omitempty"`
Text string `json:"text,omitempty"`
BtnOrientation actionCardBtnOrientationType `json:"btnOrientation,omitempty"`
SingleTitle string `json:"singleTitle,omitempty"`
SingleURL string `json:"singleURL,omitempty"`
Btns []ActionCardMultiBtnModel `json:"btns,omitempty"`
}
// ActionCardMultiBtnModel ActionCardMultiBtnModel
type ActionCardMultiBtnModel struct {
Title string `json:"title,omitempty"`
ActionURL string `json:"actionURL,omitempty"`
}
// feedCardModel feedCardModel
type feedCardModel struct {
Links []FeedCardLinkModel `json:"links,omitempty"`
}
// FeedCardLinkModel FeedCardLinkModel
type FeedCardLinkModel struct {
Title string `json:"title,omitempty"`
MessageURL string `json:"messageURL,omitempty"`
PicURL string `json:"picURL,omitempty"`
}
// OutGoingModel OutGoingModel
type OutGoingModel struct {
AtUsers []struct {
DingtalkID string `json:"dingtalkId"`
} `json:"atUsers"`
ChatbotUserID string `json:"chatbotUserId"`
ConversationID string `json:"conversationId"`
ConversationTitle string `json:"conversationTitle"`
ConversationType string `json:"conversationType"`
CreateAt int64 `json:"createAt"`
IsAdmin bool `json:"isAdmin"`
IsInAtList bool `json:"isInAtList"`
MsgID string `json:"msgId"`
Msgtype string `json:"msgtype"`
SceneGroupCode string `json:"sceneGroupCode"`
SenderID string `json:"senderId"`
SenderNick string `json:"senderNick"`
SessionWebhook string `json:"sessionWebhook"`
SessionWebhookExpiredTime int64 `json:"sessionWebhookExpiredTime"`
Text struct {
Content string `json:"content"`
} `json:"text"`
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。