leutu
2024-06-03 3ef35e6cd16bbfa206b26bb3271eac40ad020bcb
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
package com.fastbee.iot.wechat;
 
import com.fastbee.common.core.domain.AjaxResult;
import com.fastbee.common.wechat.WeChatLoginBody;
import com.fastbee.common.wechat.WeChatLoginResult;
import com.fastbee.iot.wechat.vo.WxBindReqVO;
import com.fastbee.iot.wechat.vo.WxCancelBindReqVO;
 
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
 
/**
 * 微信相关服务类
 * @author fastb
 * @date 2023-07-31 11:34
 */
public interface WeChatService {
 
    /**
     * 移动应用微信登录
     * @param weChatLoginBody 微信登录参数
     * @return String
     */
    WeChatLoginResult mobileLogin(WeChatLoginBody weChatLoginBody);
 
    /**
     * 小程序微信登录
     * @param weChatLoginBody 微信登录参数
     * @return 登录结果
     */
    WeChatLoginResult miniLogin(WeChatLoginBody weChatLoginBody);
 
    /**
     * 取消所有相关微信绑定
     * @param wxCancelBindReqVO 微信解绑传参类型
     * @return 结果
     */
    AjaxResult cancelBind(WxCancelBindReqVO wxCancelBindReqVO);
 
    /**
     * 小程序、移动应用微信绑定
     * @param wxBindReqVO 微信绑定传参类型
     * @return 结果
     */
    AjaxResult bind(WxBindReqVO wxBindReqVO);
 
    /**
     * 网站应用获取微信绑定二维码信息
     * @return 二维码信息
     */
    AjaxResult getWxBindQr(HttpServletRequest httpServletRequest);
 
    /**
     * 网站应用内微信扫码绑定回调接口
     * @param code 用户凭证
     * @param state 时间戳
     * @param httpServletRequest 请求信息
     * @param httpServletResponse 响应信息
     */
    String wxBindCallback(String code, String state, String wxBindId, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse);
 
    /**
     * 网站应用获取微信绑定结果信息
     * @param wxBindMsgId 微信绑定结果信息id
     * @return msg
     */
    AjaxResult getWxBindMsg(String wxBindMsgId);
}