liujie
2026-06-09 c96fbe6b0aeb413a17c429133ee6d81d138144b9
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
package com.xiaopeng.api.feignClient.account;
 
import com.xiaopeng.api.dto.account.UserResourcesDto;
import com.xiaopeng.api.factory.account.SSOClientFallbackFactory;
import com.xiaopeng.api.vo.account.WechatAccessTokenResVo;
import com.xiaopeng.common.core.dto.ServiceNameConstantsEnum;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
 
/**
 * 小鹏三方授权
 */
@FeignClient(contextId = "SSOClient",
        value = ServiceNameConstantsEnum.XP_SSO_BOOT,
        fallbackFactory = SSOClientFallbackFactory.class)
public interface SSOClient {
 
 
    /**
     * 调用小鹏获取微信全局token
     * @param appId
     * @param wxAppId
     * @param isRefresh
     * @return
     */
    @GetMapping("/logan/sso/third/getWechatAccessToken")
    WechatAccessTokenResVo getWechatAccessToken(@RequestParam("appId") String appId,
                                                @RequestParam("wxAppId") String wxAppId,
                                                @RequestParam("isRefresh") Boolean isRefresh);
}