chenjiahe
2022-07-22 9f236f0a698cabf9fe98bac06bea88f0d5d72a9f
提交 | 用户 | age
9f236f 1 package com.hz.his.feign.service;
C 2
3 import com.hx.resultTool.Result;
4 import com.hz.his.dto.token.GetTokenDto;
5 import org.springframework.cloud.openfeign.FeignClient;
6 import org.springframework.web.bind.annotation.PostMapping;
7 import org.springframework.web.bind.annotation.RequestBody;
8
9 /**
10  * 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀
11  */
12 @FeignClient(name="phi-platfrom-service",path = "/phip",contextId = "cos-down")
13 public interface SWxTokenService {
14
15     /**
16      *获取小程序企业微信应用token
17      * 转化使用 WxTokenVo
18      * @param GetTokenDto 对象
19      * @return
20      */
21     @PostMapping(value = "/account_token/apply/get_toke")
22     Result corpApplyToken(@RequestBody GetTokenDto GetTokenDto);
23
24     /**
25      *获取小程序平台token
26      * 转化使用 WxTokenVo
27      * @param GetTokenDto 对象
28      * @return
29      */
30     @PostMapping(value = "/account_token/mp/get_token")
31     Result mpToken(@RequestBody GetTokenDto GetTokenDto);
32
33
34 }