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.RestTemplate
private void
postToDingTalk
(String webhookUrl, Object body) void
sendActionCardBtns
(String webhookUrl, String title, String text, List<Map<String, String>> btns, String btnOrientation) void
sendActionCardSingle
(String webhookUrl, String title, String text, String singleTitle, String singleURL, String btnOrientation) void
void
void
sendMarkdown
(String webhookUrl, String title, String text, List<String> atMobiles, List<String> atUserIds, boolean isAtAll) void
sendText
(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
-