提交 | 用户 | age
|
ddd881
|
1 |
package com.hz.his.feign.service.platform; |
F |
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 |
import org.springframework.web.bind.annotation.RequestHeader; |
|
9 |
|
|
10 |
/** |
|
11 |
* 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 |
|
12 |
* url :指定地址(token统一拿线上,所以需要指定) |
|
13 |
*/ |
314a4b
|
14 |
@FeignClient(name="phi-platform-user",url = "https://phiapi.phiskin.com",path = "/phip",contextId = "phip-token") |
ddd881
|
15 |
public interface SWxTokenService { |
F |
16 |
|
|
17 |
/** |
|
18 |
*获取小程序企业微信应用token |
|
19 |
* 转化使用 WxTokenDt |
|
20 |
* @param getTokenDto 对象 |
|
21 |
* @return |
|
22 |
*/ |
|
23 |
@PostMapping(value = "/account_token/apply/get_token") |
|
24 |
Result corpApplyToken(@RequestBody GetTokenDto getTokenDto, |
|
25 |
@RequestHeader(name = "appId",required = true) String appId, |
|
26 |
@RequestHeader(name = "sign",required = true) String sign, |
|
27 |
@RequestHeader(name = "appIdCode",required = false) String appIdCode); |
|
28 |
|
|
29 |
/** |
29810c
|
30 |
*获取小程序企业微信应用token |
C |
31 |
* 转化使用 WxTokenDt |
|
32 |
* @param getTokenDto 对象 |
|
33 |
* @return |
|
34 |
*/ |
|
35 |
@PostMapping(value = "/account_token/apply/get_token") |
|
36 |
Result corpApplyToken(@RequestBody GetTokenDto getTokenDto); |
|
37 |
|
|
38 |
/** |
ddd881
|
39 |
*获取小程序普通token |
F |
40 |
* 转化使用 WxTokenDt |
|
41 |
* @param getTokenDto 对象 |
|
42 |
* @return |
|
43 |
*/ |
|
44 |
@PostMapping(value = "/account_token/mp/get_token") |
|
45 |
Result mpToken(@RequestBody GetTokenDto getTokenDto, |
|
46 |
@RequestHeader(name = "appId",required = true) String appId, |
|
47 |
@RequestHeader(name = "sign",required = true) String sign, |
|
48 |
@RequestHeader(name = "appIdCode",required = false) String appIdCode); |
29810c
|
49 |
|
C |
50 |
/** |
|
51 |
*获取小程序普通token |
|
52 |
* 转化使用 WxTokenDt |
|
53 |
* @param getTokenDto 对象 |
|
54 |
* @return |
|
55 |
*/ |
|
56 |
@PostMapping(value = "/account_token/mp/get_token") |
|
57 |
Result mpToken(@RequestBody GetTokenDto getTokenDto); |
ddd881
|
58 |
|
F |
59 |
|
|
60 |
/** |
|
61 |
*获取公众号普通token |
|
62 |
* 转化使用 WxTokenDt |
|
63 |
* @param getTokenDto 对象 |
|
64 |
* @return |
|
65 |
*/ |
|
66 |
@PostMapping(value = "/account_token/weChat/get_token") |
|
67 |
Result weChatToken(@RequestBody GetTokenDto getTokenDto, |
|
68 |
@RequestHeader(name = "appId",required = true) String appId, |
|
69 |
@RequestHeader(name = "sign",required = true) String sign, |
|
70 |
@RequestHeader(name = "appIdCode",required = false) String appIdCode); |
|
71 |
|
0fd24f
|
72 |
/** |
29810c
|
73 |
*获取公众号普通token |
C |
74 |
* 转化使用 WxTokenDt |
|
75 |
* @param getTokenDto 对象 |
|
76 |
* @return |
|
77 |
*/ |
|
78 |
@PostMapping(value = "/account_token/weChat/get_token") |
|
79 |
Result weChatToken(@RequestBody GetTokenDto getTokenDto); |
|
80 |
|
|
81 |
/** |
a5b35d
|
82 |
*获取企业微信通讯录token |
0fd24f
|
83 |
* 转化使用 WxTokenDt |
F |
84 |
* @param getTokenDto 对象 |
|
85 |
* @return |
|
86 |
*/ |
|
87 |
@PostMapping(value = "/account_token/communi/get_token") |
|
88 |
Result corpCommonToken(@RequestBody GetTokenDto getTokenDto, |
|
89 |
@RequestHeader(name = "appId",required = true) String appId, |
|
90 |
@RequestHeader(name = "sign",required = true) String sign, |
|
91 |
@RequestHeader(name = "appIdCode",required = false) String appIdCode); |
|
92 |
|
a5b35d
|
93 |
/** |
29810c
|
94 |
*获取企业微信通讯录token |
C |
95 |
* 转化使用 WxTokenDt |
|
96 |
* @param getTokenDto 对象 |
|
97 |
* @return |
|
98 |
*/ |
|
99 |
@PostMapping(value = "/account_token/communi/get_token") |
|
100 |
Result corpCommonToken(@RequestBody GetTokenDto getTokenDto); |
|
101 |
|
|
102 |
/** |
a5b35d
|
103 |
*获取企业微信联系我token |
F |
104 |
* 转化使用 WxTokenDt |
|
105 |
* @param getTokenDto 对象 |
|
106 |
* @return |
|
107 |
*/ |
|
108 |
@PostMapping(value = "/account_token/contact/get_token") |
|
109 |
Result corpContactToken(@RequestBody GetTokenDto getTokenDto, |
|
110 |
@RequestHeader(name = "appId",required = true) String appId, |
|
111 |
@RequestHeader(name = "sign",required = true) String sign, |
|
112 |
@RequestHeader(name = "appIdCode",required = false) String appIdCode); |
|
113 |
|
29810c
|
114 |
/** |
C |
115 |
*获取企业微信联系我token |
|
116 |
* 转化使用 WxTokenDt |
|
117 |
* @param getTokenDto 对象 |
|
118 |
* @return |
|
119 |
*/ |
|
120 |
@PostMapping(value = "/account_token/contact/get_token") |
|
121 |
Result corpContactToken(@RequestBody GetTokenDto getTokenDto); |
|
122 |
|
ddd881
|
123 |
} |