fwq
2022-07-28 ddd881645023481737e4379e92f022843abed877
提交 | 用户 | age
ddd881 1 package com.hz.his.feign.service.phis;
7c680b 2
C 3 import com.hx.resultTool.Result;
f5bce1 4 import com.hz.his.dto.order.OrderDto;
7c680b 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 import org.springframework.web.bind.annotation.RequestParam;
9
10 /**
11  * 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀
12  */
13 @FeignClient(name = "phis-provider", path = "/p-his-data", contextId = "order")
14 public interface SOrderService {
15
16     /**
17      * 订单列表
18      */
19     @PostMapping(value = "/order/list")
f5bce1 20     Result orderList(@RequestBody OrderDto orderDto);
7c680b 21
C 22     /**
23      * 订单详情
24      */
25     @PostMapping(value = "/order/detail")
26     Result orderDetail(@RequestParam("orderId") String orderId);
27
28
29 }