@Test @Disabled void sendLink() { dingTalkService.sendLink("wx: link", "https: }
@Override public void sendLink(String title, String messageUrl, String text, @Nullable String pictureUrl) { OapiRobotSendRequest request = new OapiRobotSendRequest(); request.setMsgtype("link"); OapiRobotSendRequest.Link link = new OapiRobotSendRequest.Link(); link.setPicUrl(pictureUrl); link.setMessageUrl(messageUrl); link.setTitle(title); link.setText(text); request.setLink(link); executeRequest(request); }
DingTalkServiceImpl implements DingTalkService { @Override public void sendLink(String title, String messageUrl, String text, @Nullable String pictureUrl) { OapiRobotSendRequest request = new OapiRobotSendRequest(); request.setMsgtype("link"); OapiRobotSendRequest.Link link = new OapiRobotSendRequest.Link(); link.setPicUrl(pictureUrl); link.setMessageUrl(messageUrl); link.setTitle(title); link.setText(text); request.setLink(link); executeRequest(request); } }
DingTalkServiceImpl implements DingTalkService { @Override public void sendLink(String title, String messageUrl, String text, @Nullable String pictureUrl) { OapiRobotSendRequest request = new OapiRobotSendRequest(); request.setMsgtype("link"); OapiRobotSendRequest.Link link = new OapiRobotSendRequest.Link(); link.setPicUrl(pictureUrl); link.setMessageUrl(messageUrl); link.setTitle(title); link.setText(text); request.setLink(link); executeRequest(request); } DingTalkServiceImpl(DingTalkSetting dingTalkSetting); }
DingTalkServiceImpl implements DingTalkService { @Override public void sendLink(String title, String messageUrl, String text, @Nullable String pictureUrl) { OapiRobotSendRequest request = new OapiRobotSendRequest(); request.setMsgtype("link"); OapiRobotSendRequest.Link link = new OapiRobotSendRequest.Link(); link.setPicUrl(pictureUrl); link.setMessageUrl(messageUrl); link.setTitle(title); link.setText(text); request.setLink(link); 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 { @Override public void sendLink(String title, String messageUrl, String text, @Nullable String pictureUrl) { OapiRobotSendRequest request = new OapiRobotSendRequest(); request.setMsgtype("link"); OapiRobotSendRequest.Link link = new OapiRobotSendRequest.Link(); link.setPicUrl(pictureUrl); link.setMessageUrl(messageUrl); link.setTitle(title); link.setText(text); request.setLink(link); 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);  }