提交 | 用户 | age
|
515b69
|
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.PayNoVo; |
515b69
|
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 |
*/ |
314a4b
|
12 |
@FeignClient(name="phi-platform-user",path = "/phip",contextId = "pay-no") |
515b69
|
13 |
public interface SPayNoService { |
C |
14 |
|
|
15 |
/** |
6343af
|
16 |
* 获取支付编号 |
C |
17 |
* data就是转 PayNoResVo |
515b69
|
18 |
*/ |
C |
19 |
@PostMapping(value = "/pay/create") |
|
20 |
Result payCreate(@RequestBody PayNoVo payNoVo); |
|
21 |
|
|
22 |
} |