wangrenhuang
2023-02-28 4607163342d0f3598748662eb3e41cacb708adc6
提交 | 用户 | 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  */
12 @FeignClient(name="phi-platform-service",path = "/phip",contextId = "phip-refund")
13 public interface SPhipRefundService {
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 }