fwq
2022-10-12 63ddd3f3ac73e2f9bf1f170caa5c82e389017266
提交 | 用户 | age
de7e73 1 package com.hx.phiappt.feign;
F 2
3 import com.hx.phiappt.dto.order.stock.StockChangeDto;
63ddd3 4 import com.hx.phiappt.dto.order.pick.PickUpDto;
de7e73 5 import com.hx.resultTool.Result;
F 6 import org.springframework.cloud.openfeign.FeignClient;
7 import org.springframework.web.bind.annotation.PostMapping;
8 import org.springframework.web.bind.annotation.RequestBody;
9
10 /**
11  * 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀
12  */
63ddd3 13 @FeignClient(name="warehouse-service", path = "/warehouse",contextId = "warehouse-order")
de7e73 14 public interface WOrderService {
F 15
16     /**
17      * 生成商品提货单
18      */
19     @PostMapping(value = "/order/create/pack/up")
20     Result pickUpOrder(@RequestBody PickUpDto pickUpDto);
21
22     /**
63ddd3 23      * 生成商品其它出库单
de7e73 24      */
F 25     @PostMapping(value = "/order/create/out/stock")
26     Result outStockOrder(@RequestBody StockChangeDto stockChangeDto);
27
28     /**
29      * 生成商品入库单
30      */
31     @PostMapping(value = "/order/create/in/stock")
32     Result inStockOrder(@RequestBody StockChangeDto stockChangeDto);
33
34 }