@Test @Disabled void testSendMarkdown() { dingTalkService.sendMarkdown("wx: hello", "# python\n```python\nprint('hello')\n```"); }
public void sendMarkdown(String title, String markdownText) { OapiRobotSendRequest request = new OapiRobotSendRequest(); request.setMsgtype("markdown"); OapiRobotSendRequest.Markdown markdown = new OapiRobotSendRequest.Markdown(); markdown.setTitle(title); markdown.setText(markdownText); request.setMarkdown(markdown); executeRequest(request); }
DingTalkServiceImpl implements DingTalkService { public void sendMarkdown(String title, String markdownText) { OapiRobotSendRequest request = new OapiRobotSendRequest(); request.setMsgtype("markdown"); OapiRobotSendRequest.Markdown markdown = new OapiRobotSendRequest.Markdown(); markdown.setTitle(title); markdown.setText(markdownText); request.setMarkdown(markdown); executeRequest(request); } }
DingTalkServiceImpl implements DingTalkService { public void sendMarkdown(String title, String markdownText) { OapiRobotSendRequest request = new OapiRobotSendRequest(); request.setMsgtype("markdown"); OapiRobotSendRequest.Markdown markdown = new OapiRobotSendRequest.Markdown(); markdown.setTitle(title); markdown.setText(markdownText); request.setMarkdown(markdown); executeRequest(request); } DingTalkServiceImpl(DingTalkSetting dingTalkSetting); }
DingTalkServiceImpl implements DingTalkService { public void sendMarkdown(String title, String markdownText) { OapiRobotSendRequest request = new OapiRobotSendRequest(); request.setMsgtype("markdown"); OapiRobotSendRequest.Markdown markdown = new OapiRobotSendRequest.Markdown(); markdown.setTitle(title); markdown.setText(markdownText); request.setMarkdown(markdown); executeRequest(request); } DingTalkServiceImpl(DingTalkSetting dingTalkSetting); @Override void sendText(String textMessage, String... atMobiles); @Override void sendLink(String title, String messageUrl, String text, @Nullable String pictureUrl); void sendMarkdown(String title, String markdownText); }
DingTalkServiceImpl implements DingTalkService { public void sendMarkdown(String title, String markdownText) { OapiRobotSendRequest request = new OapiRobotSendRequest(); request.setMsgtype("markdown"); OapiRobotSendRequest.Markdown markdown = new OapiRobotSendRequest.Markdown(); markdown.setTitle(title); markdown.setText(markdownText); request.setMarkdown(markdown); executeRequest(request); } DingTalkServiceImpl(DingTalkSetting dingTalkSetting); @Override void sendText(String textMessage, String... atMobiles); @Override void sendLink(String title, String messageUrl, String text, @Nullable String pictureUrl); void sendMarkdown(String title, String markdownText);  }