| | |
| | | * 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 |
| | | * url :指定地址(token统一拿线上,所以需要指定) |
| | | */ |
| | | @FeignClient(name="phi-platfrom-service",url = "https://phiapi.phiskin.com",path = "/phip",contextId = "phip-token") |
| | | @FeignClient(name="phi-platform-service",url = "https://phiapi.phiskin.com",path = "/phip",contextId = "phip-token") |
| | | public interface SWxTokenService { |
| | | |
| | | /** |
| | |
| | | @RequestHeader(name = "sign",required = true) String sign, |
| | | @RequestHeader(name = "appIdCode",required = false) String appIdCode); |
| | | |
| | | /** |
| | | *获取企业微信通讯录token |
| | | * 转化使用 WxTokenDt |
| | | * @param getTokenDto 对象 |
| | | * @return |
| | | */ |
| | | @PostMapping(value = "/account_token/communi/get_token") |
| | | Result corpCommonToken(@RequestBody GetTokenDto getTokenDto, |
| | | @RequestHeader(name = "appId",required = true) String appId, |
| | | @RequestHeader(name = "sign",required = true) String sign, |
| | | @RequestHeader(name = "appIdCode",required = false) String appIdCode); |
| | | |
| | | /** |
| | | *获取企业微信联系我token |
| | | * 转化使用 WxTokenDt |
| | | * @param getTokenDto 对象 |
| | | * @return |
| | | */ |
| | | @PostMapping(value = "/account_token/contact/get_token") |
| | | Result corpContactToken(@RequestBody GetTokenDto getTokenDto, |
| | | @RequestHeader(name = "appId",required = true) String appId, |
| | | @RequestHeader(name = "sign",required = true) String sign, |
| | | @RequestHeader(name = "appIdCode",required = false) String appIdCode); |
| | | |
| | | } |