提交 | 用户 | age
|
b55a75
|
1 |
package com.hx.warehouse.feign; |
63ddd3
|
2 |
|
b55a75
|
3 |
import com.hx.warehouse.dto.gold.ParameterDto; |
63ddd3
|
4 |
import com.hx.resultTool.Result; |
F |
5 |
import org.springframework.cloud.openfeign.FeignClient; |
|
6 |
import org.springframework.web.bind.annotation.PostMapping; |
|
7 |
import org.springframework.web.bind.annotation.RequestBody; |
|
8 |
|
|
9 |
/** |
|
10 |
* 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 |
|
11 |
*/ |
cc1dd8
|
12 |
@FeignClient(name="warehouse-service", path = "/warehouse",contextId = "warehouse-update") |
63ddd3
|
13 |
public interface WUpdateService { |
F |
14 |
|
|
15 |
|
|
16 |
/** |
|
17 |
* 更新门店仓库 |
|
18 |
* */ |
|
19 |
@PostMapping(value = "/update/shopWareHouse") |
|
20 |
Result updateShopWarehouse(@RequestBody ParameterDto parameterDto); |
|
21 |
|
|
22 |
/** |
|
23 |
* 更新商品信息 |
|
24 |
* */ |
|
25 |
@PostMapping(value = "/update/consumables") |
|
26 |
Result updateConsumables(@RequestBody ParameterDto parameterDto); |
|
27 |
|
|
28 |
/** |
|
29 |
* 更新商品库存 |
|
30 |
* */ |
|
31 |
@PostMapping(value = "/update/stock") |
|
32 |
Result updateConsumablesStock(@RequestBody ParameterDto parameterDto); |
|
33 |
|
|
34 |
} |