fwq
2023-10-24 6e1239a449a18bee6e4266d6a124cfefd3806b8a
提交 | 用户 | age
b55a75 1 package com.hx.warehouse.feign;
de7e73 2
127ea6 3 import com.hx.warehouse.dto.order.stock.StockBackDto;
b55a75 4 import com.hx.warehouse.dto.order.stock.StockChangeDto;
F 5 import com.hx.warehouse.dto.order.pick.PickUpDto;
de7e73 6 import com.hx.resultTool.Result;
98b4be 7 import com.hx.warehouse.dto.order.stock.StockMoveDto;
9c028b 8 import com.hx.warehouse.dto.order.stock.StockShopDto;
de7e73 9 import org.springframework.cloud.openfeign.FeignClient;
F 10 import org.springframework.web.bind.annotation.PostMapping;
11 import org.springframework.web.bind.annotation.RequestBody;
12
13 /**
14  * 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀
15  */
63ddd3 16 @FeignClient(name="warehouse-service", path = "/warehouse",contextId = "warehouse-order")
de7e73 17 public interface WOrderService {
F 18
19     /**
20      * 生成商品提货单
21      */
22     @PostMapping(value = "/order/create/pack/up")
23     Result pickUpOrder(@RequestBody PickUpDto pickUpDto);
24
25     /**
63ddd3 26      * 生成商品其它出库单
de7e73 27      */
F 28     @PostMapping(value = "/order/create/out/stock")
29     Result outStockOrder(@RequestBody StockChangeDto stockChangeDto);
30
31     /**
32      * 生成商品入库单
33      */
34     @PostMapping(value = "/order/create/in/stock")
35     Result inStockOrder(@RequestBody StockChangeDto stockChangeDto);
36
127ea6 37     /**
F 38      * 出入库回退接口
39      */
40     @PostMapping(value = "/order/in/out/back")
41     Result inOutBack(@RequestBody StockBackDto stockBackDto);
42
9c028b 43     /**更新门店库存(划扣库)*/
F 44     @PostMapping(value = "/stock/update/by/shopId")
45     Result updateStockByShop(@RequestBody StockShopDto stockShopDto);
98b4be 46
F 47
48     /**
49      * 生产移库单
50      */
51     @PostMapping(value = "/order/create/move/stock")
52     Result moveStockOrder(@RequestBody StockMoveDto stockMoveDto);
53
de7e73 54 }