| | |
| | | */ |
| | | WxCpPushResultVO pushText(String content, Integer scope, String target); |
| | | |
| | | /** |
| | | * 推送图文消息(news) |
| | | * |
| | | * @param title 标题 |
| | | * @param description 摘要 |
| | | * @param url 点击跳转地址 |
| | | * @param picUrl 封面图地址(选填) |
| | | * @param scope 推送范围 |
| | | * @param target 推送目标 |
| | | * @return 推送结果 |
| | | */ |
| | | WxCpPushResultVO pushNews(String title, String description, String url, String picUrl, |
| | | Integer scope, String target); |
| | | |
| | | /** |
| | | * 推送文件消息:先把文件上传到企业微信换取 mediaId,再发送文件 |
| | | * |
| | | * @param file 文件 |
| | | * @param fileName 文件名(仅用于日志) |
| | | * @param textContent 文件前的说明文本,可为空 |
| | | * @param scope 推送范围 |
| | | * @param target 推送目标 |
| | | * @return 推送结果 |
| | | */ |
| | | WxCpPushResultVO pushFile(java.io.File file, String fileName, String textContent, |
| | | Integer scope, String target); |
| | | |
| | | /** |
| | | * 推送图片消息:先把图片上传到企业微信换取 mediaId,再发送图片 |
| | | * |
| | | * @param file 图片文件 |
| | | * @param scope 推送范围 |
| | | * @param target 推送目标 |
| | | * @return 推送结果 |
| | | */ |
| | | WxCpPushResultVO pushImage(java.io.File file, Integer scope, String target); |
| | | |
| | | } |