-
-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Expand file tree
/
Copy pathWxChannelKfService.java
More file actions
48 lines (43 loc) · 1.33 KB
/
Copy pathWxChannelKfService.java
File metadata and controls
48 lines (43 loc) · 1.33 KB
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
47
48
package me.chanjar.weixin.channel.api;
import me.chanjar.weixin.channel.bean.kf.WxChannelKfSendMsgParam;
import me.chanjar.weixin.channel.bean.kf.WxChannelKfSendMsgResponse;
import me.chanjar.weixin.common.error.WxErrorException;
/**
* 视频号小店 商家客服服务
*
* @author <a href="https://github.com/github-copilot">GitHub Copilot</a>
*/
public interface WxChannelKfService {
/**
* 上传多媒体资源.
*
* @param openId 用户 open_id
* @param msgType 文件类型,仅支持:video/file/image
* @param file 文件字节内容
* @return cos_url
*
* @throws WxErrorException 异常
*/
String uploadMedia(String openId, String msgType, byte[] file) throws WxErrorException;
/**
* 上传多媒体资源.
*
* @param openId 用户 open_id
* @param msgType 文件类型,仅支持:video/file/image
* @param fileName 文件名
* @param file 文件字节内容
* @return cos_url
*
* @throws WxErrorException 异常
*/
String uploadMedia(String openId, String msgType, String fileName, byte[] file) throws WxErrorException;
/**
* 发送客服消息.
*
* @param param 请求参数
* @return 发送结果
*
* @throws WxErrorException 异常
*/
WxChannelKfSendMsgResponse sendMessage(WxChannelKfSendMsgParam param) throws WxErrorException;
}