提交 | 用户 | age
|
43d893
|
1 |
package com.hz.his.feign.service.platform.payment; |
C |
2 |
|
|
3 |
import com.hx.resultTool.Result; |
ee6443
|
4 |
import com.hz.phis.vo.payment.qr.OrderQrPayVo; |
43d893
|
5 |
import org.springframework.cloud.openfeign.FeignClient; |
C |
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 = "payment-qr") |
ee6443
|
13 |
public interface SPaymentService { |
43d893
|
14 |
|
C |
15 |
/** |
|
16 |
* 获取支付编号,只返回支付编号 |
|
17 |
* data转化对象OrderQrResponeVo |
|
18 |
*/ |
|
19 |
@PostMapping(value = "/payment/order/qr") |
ee6443
|
20 |
Result orderQrPay(@RequestBody OrderQrPayVo orderQrPayVo); |
43d893
|
21 |
|
C |
22 |
} |