提交 | 用户 | age
|
d7df65
|
1 |
package com.hz.his.feign.service.sync; |
Z |
2 |
|
|
3 |
/** |
|
4 |
* @Author |
|
5 |
*/ |
|
6 |
|
|
7 |
import com.hx.resultTool.Result; |
3a4c6e
|
8 |
import com.hz.his.dto.sync.SyncOrderDto; |
d7df65
|
9 |
import org.springframework.cloud.openfeign.FeignClient; |
2c9ba9
|
10 |
import org.springframework.web.bind.annotation.GetMapping; |
7dced1
|
11 |
import org.springframework.web.bind.annotation.PostMapping; |
d7df65
|
12 |
import org.springframework.web.bind.annotation.RequestParam; |
Z |
13 |
|
|
14 |
/** |
|
15 |
* 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 |
|
16 |
*/ |
|
17 |
@FeignClient(name="synchro-service",path = "/his_synchro",contextId = "synchro-order") |
|
18 |
public interface SyncOrderService { |
|
19 |
|
|
20 |
/** |
|
21 |
* 根据用户id获取领健订单信息 |
|
22 |
* @param orderId |
|
23 |
* @return |
|
24 |
*/ |
2c9ba9
|
25 |
@GetMapping(value = "/sync/order/getOrderById") |
d7df65
|
26 |
Result getOrderById(@RequestParam("orderId") String orderId); |
3a4c6e
|
27 |
|
ec3f39
|
28 |
/** |
3a4c6e
|
29 |
* 修改领健订单为作废订单 |
Z |
30 |
* 注意不要随意调用,需要用到先和同步中心商量 |
|
31 |
* @param syncOrderDto |
|
32 |
* @return |
|
33 |
*/ |
7dced1
|
34 |
@PostMapping(value = "/sync/order/cancelOrder") |
3a4c6e
|
35 |
Result cancelOrder(SyncOrderDto syncOrderDto); |
Z |
36 |
|
|
37 |
/** |
|
38 |
* 修改领建订单为退款状态 |
|
39 |
* 注意不要随意调用,需要用到先和同步中心商量 |
|
40 |
* @param syncOrderDto |
|
41 |
* @return |
|
42 |
*/ |
7dced1
|
43 |
@PostMapping(value = "/sync/order/refundOrder") |
3a4c6e
|
44 |
Result refundOrder(SyncOrderDto syncOrderDto); |
ec3f39
|
45 |
/** |
Z |
46 |
* 修改领建订单为部分退款状态 |
|
47 |
* 注意不要随意调用,需要用到先和同步中心商量 |
|
48 |
* @param syncOrderDto |
|
49 |
* @return |
|
50 |
*/ |
|
51 |
@PostMapping(value = "/sync/order/partialRefund") |
|
52 |
Result partialRefund(SyncOrderDto syncOrderDto); |
|
53 |
|
3a4c6e
|
54 |
|
d7df65
|
55 |
} |