提交 | 用户 | 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; |
F |
7 |
import org.springframework.cloud.openfeign.FeignClient; |
|
8 |
import org.springframework.web.bind.annotation.PostMapping; |
|
9 |
import org.springframework.web.bind.annotation.RequestBody; |
|
10 |
|
|
11 |
/** |
|
12 |
* 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 |
|
13 |
*/ |
63ddd3
|
14 |
@FeignClient(name="warehouse-service", path = "/warehouse",contextId = "warehouse-order") |
de7e73
|
15 |
public interface WOrderService { |
F |
16 |
|
|
17 |
/** |
|
18 |
* 生成商品提货单 |
|
19 |
*/ |
|
20 |
@PostMapping(value = "/order/create/pack/up") |
|
21 |
Result pickUpOrder(@RequestBody PickUpDto pickUpDto); |
|
22 |
|
|
23 |
/** |
63ddd3
|
24 |
* 生成商品其它出库单 |
de7e73
|
25 |
*/ |
F |
26 |
@PostMapping(value = "/order/create/out/stock") |
|
27 |
Result outStockOrder(@RequestBody StockChangeDto stockChangeDto); |
|
28 |
|
|
29 |
/** |
|
30 |
* 生成商品入库单 |
|
31 |
*/ |
|
32 |
@PostMapping(value = "/order/create/in/stock") |
|
33 |
Result inStockOrder(@RequestBody StockChangeDto stockChangeDto); |
|
34 |
|
127ea6
|
35 |
/** |
F |
36 |
* 出入库回退接口 |
|
37 |
*/ |
|
38 |
@PostMapping(value = "/order/in/out/back") |
|
39 |
Result inOutBack(@RequestBody StockBackDto stockBackDto); |
|
40 |
|
de7e73
|
41 |
} |