zhangxu
2022-09-23 3331e358f12dd29b15eb94e6f57d0d11ccd8182c
提交 | 用户 | 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
fe50cf 28     /**
W 29      * 根据商品id查询订单数量
30      */
31     @PostMapping(value = "/order/numByGoodsId")
32     Result queryOrderNumByGoodsId(@RequestParam("goodsId") String goodsId);
33
34     /**
35      * 根据活动id查询订单数量
36      */
37     @PostMapping(value = "/order/numByActivityId")
38     Result queryOrderNumByActivityId(@RequestParam("activityId") String activityId);
39
7c680b 40
C 41 }