提交 | 用户 | 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; |
d7df65
|
11 |
import org.springframework.web.bind.annotation.RequestParam; |
Z |
12 |
|
|
13 |
/** |
|
14 |
* 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 |
|
15 |
*/ |
|
16 |
@FeignClient(name="synchro-service",path = "/his_synchro",contextId = "synchro-order") |
|
17 |
public interface SyncOrderService { |
|
18 |
|
|
19 |
/** |
|
20 |
* 根据用户id获取领健订单信息 |
|
21 |
* @param orderId |
|
22 |
* @return |
|
23 |
*/ |
2c9ba9
|
24 |
@GetMapping(value = "/sync/order/getOrderById") |
d7df65
|
25 |
Result getOrderById(@RequestParam("orderId") String orderId); |
3a4c6e
|
26 |
|
Z |
27 |
/** |
|
28 |
* 修改领健订单为作废订单 |
|
29 |
* 注意不要随意调用,需要用到先和同步中心商量 |
|
30 |
* @param syncOrderDto |
|
31 |
* @return |
|
32 |
*/ |
|
33 |
@GetMapping(value = "/sync/order/cancelOrder") |
|
34 |
Result cancelOrder(SyncOrderDto syncOrderDto); |
|
35 |
|
|
36 |
/** |
|
37 |
* 修改领建订单为退款状态 |
|
38 |
* 注意不要随意调用,需要用到先和同步中心商量 |
|
39 |
* @param syncOrderDto |
|
40 |
* @return |
|
41 |
*/ |
|
42 |
@GetMapping(value = "/sync/order/refundOrder") |
|
43 |
Result refundOrder(SyncOrderDto syncOrderDto); |
|
44 |
|
d7df65
|
45 |
} |