提交 | 用户 | age
|
700244
|
1 |
package com.hz.his.feign.service.platform; |
A |
2 |
|
|
3 |
import com.hx.resultTool.Result; |
|
4 |
import com.hz.his.dto.refund.RefundFundsDto; |
|
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 |
*/ |
314a4b
|
12 |
@FeignClient(name="phi-platform-user",path = "/phip",contextId = "phip-refund") |
700244
|
13 |
public interface SPhipRefundService { |
A |
14 |
|
|
15 |
/** |
|
16 |
* 用户资金退款 |
|
17 |
* @param refundFundsDto 参数 |
|
18 |
* @return 返回 |
|
19 |
*/ |
|
20 |
@PostMapping("/refund/user/funds") |
|
21 |
Result refundUserFunds(@RequestBody RefundFundsDto refundFundsDto); |
|
22 |
|
|
23 |
/** |
|
24 |
* 用户资金退款审核 |
|
25 |
* @param refundFundsDto 参数 |
|
26 |
* @return 返回 |
|
27 |
*/ |
|
28 |
@PostMapping(value = "/refund/user/funds/approve") |
|
29 |
Result refundUserFundsApprove(@RequestBody RefundFundsDto refundFundsDto); |
|
30 |
} |