fwq
2022-10-25 b55a75608f5fa6fedb7d74a0e42abc4dd7508a74
提交 | 用户 | age
b55a75 1 package com.hx.warehouse.feign;
de7e73 2
b55a75 3 import com.hx.warehouse.dto.order.stock.StockChangeDto;
F 4 import com.hx.warehouse.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 }