wlzboy
5 天以前 7de1396e315896dbc72a9d54e44f77434ea90f18
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package com.ruoyi.system.service;
 
/**
 * 企业微信服务接口
 * 
 * @author ruoyi
 * @date 2025-12-11
 */
public interface IQyWechatService {
 
    /**
     * 发送企业微信消息
     * 
     * @param userId 用户ID
     * @param title 消息标题
     * @param content 消息内容
     * @return 是否发送成功
     */
    boolean sendNotifyMessage(Long userId, String title, String content, String notifyUrl);
 
    /**
     * 发送企业微信文本消息
     * 
     * @param qyUserId 企业微信用户ID
     * @param title 消息标题
     * @param content 消息内容
     * @param notifyUrl 通知链接
     * @return 是否发送成功
     */
    boolean sendTextMessage(String qyUserId, String title, String content, String notifyUrl);
 
    /**
     * 获取用户的企业微信ID
     * 
     * @param userId 系统用户ID
     * @return 企业微信用户ID
     */
    String getQyUserIdByUserId(Long userId);
 
    /**
     * 检查企业微信服务是否启用
     * 
     * @return true=启用, false=未启用
     */
    boolean isEnabled();
}