package com.xiaopeng.api.feignClient.account; import com.xiaopeng.api.dto.account.UserResourcesDto; import com.xiaopeng.api.factory.account.SSOClientFallbackFactory; 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/third/thirdInfo") UserResourcesDto getWechatAccessToken(@RequestParam("appId") String appId, @RequestParam("wxAppId") String wxAppId, @RequestParam("isRefresh") Boolean isRefresh); }