提交 | 用户 | age
|
b55a75
|
1 |
package com.hx.warehouse.feign; |
63ddd3
|
2 |
|
7f2ed4
|
3 |
import com.hx.warehouse.dto.gold.ParListDto; |
63ddd3
|
4 |
import com.hx.resultTool.Result; |
e02c8b
|
5 |
import com.hx.warehouse.dto.order.OrderBackDto; |
7189b2
|
6 |
import com.hx.warehouse.dto.order.OrderUpdateDto; |
63ddd3
|
7 |
import org.springframework.cloud.openfeign.FeignClient; |
F |
8 |
import org.springframework.web.bind.annotation.PostMapping; |
|
9 |
import org.springframework.web.bind.annotation.RequestBody; |
|
10 |
|
|
11 |
/** |
|
12 |
* 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 |
|
13 |
*/ |
cc1dd8
|
14 |
@FeignClient(name="warehouse-service", path = "/warehouse",contextId = "warehouse-update") |
63ddd3
|
15 |
public interface WUpdateService { |
F |
16 |
|
|
17 |
|
|
18 |
/** |
|
19 |
* 更新门店仓库 |
|
20 |
* */ |
|
21 |
@PostMapping(value = "/update/shopWareHouse") |
7f2ed4
|
22 |
Result updateShopWarehouse(@RequestBody ParListDto parListDto); |
63ddd3
|
23 |
|
F |
24 |
/** |
|
25 |
* 更新商品信息 |
|
26 |
* */ |
|
27 |
@PostMapping(value = "/update/consumables") |
7f2ed4
|
28 |
Result updateConsumables(@RequestBody ParListDto parListDto); |
63ddd3
|
29 |
|
F |
30 |
/** |
|
31 |
* 更新商品库存 |
|
32 |
* */ |
|
33 |
@PostMapping(value = "/update/stock") |
7f2ed4
|
34 |
Result updateConsumablesStock(@RequestBody ParListDto parListDto); |
63ddd3
|
35 |
|
7189b2
|
36 |
/** |
F |
37 |
* 更新出入库单信息 |
|
38 |
* */ |
|
39 |
@PostMapping(value = "/update/order/info") |
e02c8b
|
40 |
Result orderSuccess(@RequestBody OrderBackDto orderBackDto); |
F |
41 |
|
|
42 |
/** |
|
43 |
* 出入库成功回调信息入参 |
|
44 |
* */ |
|
45 |
@PostMapping(value = "/update/back/parameter") |
|
46 |
Result backParameter(@RequestBody OrderBackDto orderBackDto); |
7189b2
|
47 |
|
63ddd3
|
48 |
} |