提交 | 用户 | age
|
63ddd3
|
1 |
package com.hx.phiappt.feign; |
F |
2 |
|
|
3 |
import com.hx.phiappt.dto.gold.ParameterDto; |
|
4 |
import com.hx.resultTool.Result; |
|
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 |
*/ |
|
12 |
@FeignClient(name="warehouse-service", path = "/warehouse",contextId = "warehouse-stock") |
|
13 |
public interface WUpdateService { |
|
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 |
} |