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