Class DingTalkWebhookService
java.lang.Object
com.bytedesk.core.webhook.channel.DingTalkWebhookService
推送到钉钉的webhook
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.springframework.web.client.RestTemplate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate org.springframework.web.client.RestTemplateprivate voidpostToDingTalk(String webhookUrl, Object body) voidsendActionCardBtns(String webhookUrl, String title, String text, List<Map<String, String>> btns, String btnOrientation) voidsendActionCardSingle(String webhookUrl, String title, String text, String singleTitle, String singleURL, String btnOrientation) voidvoidvoidsendMarkdown(String webhookUrl, String title, String text, List<String> atMobiles, List<String> atUserIds, boolean isAtAll) voidsendText(String webhookUrl, String content, List<String> atMobiles, List<String> atUserIds, boolean isAtAll)
-
Field Details
-
restTemplate
private final org.springframework.web.client.RestTemplate restTemplate
-
-
Constructor Details
-
DingTalkWebhookService
public DingTalkWebhookService()
-
-
Method Details
-
createRestTemplate
private org.springframework.web.client.RestTemplate createRestTemplate() -
sendText
-
sendLink
-
sendMarkdown
-
sendActionCardSingle
-
sendActionCardBtns
-
sendFeedCard
-
postToDingTalk
-