liu
9 小时以前 5d34bdd3c426bb2ca5f6627424ae67984f745603
yudao-module-wxcp/src/main/java/cn/iocoder/yudao/module/wxcp/service/push/WxCpMessagePushService.java
@@ -35,4 +35,41 @@
     */
    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);
}