提交 | 用户 | age
|
4482c7
|
1 |
package com.hz.his.feign.service.sync; |
Z |
2 |
|
|
3 |
import com.hx.resultTool.Result; |
a4ed34
|
4 |
import com.hz.his.dto.material.ConsumablesDto; |
Z |
5 |
import com.hz.his.dto.material.ConsumablesTypeDto; |
4482c7
|
6 |
import org.springframework.cloud.openfeign.FeignClient; |
Z |
7 |
import org.springframework.web.bind.annotation.PostMapping; |
|
8 |
import org.springframework.web.bind.annotation.RequestBody; |
|
9 |
|
|
10 |
/** |
|
11 |
* @Author |
|
12 |
*/ |
3dac1b
|
13 |
@FeignClient(name="phi-platform-user",path = "/his_synchro",contextId = "synchro-goods") |
4482c7
|
14 |
public interface SyncGoodsService { |
Z |
15 |
|
|
16 |
/** |
|
17 |
* 指定类型下创建分类新节点 - 各类型通用 |
|
18 |
* @param consumablesType |
|
19 |
* @return 操作成功的话result.data返回领建id |
|
20 |
*/ |
|
21 |
@PostMapping(value = "/sync/goods/category/add") |
a4ed34
|
22 |
Result addCategory(@RequestBody ConsumablesTypeDto consumablesType); |
4482c7
|
23 |
/** |
Z |
24 |
* 修改指定ID分类节点 - 各类型通用 |
|
25 |
* @param consumablesType |
|
26 |
* @return |
|
27 |
*/ |
|
28 |
@PostMapping(value = "/sync/goods/category/update") |
a4ed34
|
29 |
Result updateCategory(@RequestBody ConsumablesTypeDto consumablesType); |
4482c7
|
30 |
/** |
Z |
31 |
* 删除指定ID分类节点 - 各类型通用 |
|
32 |
* @param consumablesType |
|
33 |
* @return |
|
34 |
*/ |
|
35 |
@PostMapping(value = "/sync/goods/category/delete") |
a4ed34
|
36 |
Result deleteCategory(@RequestBody ConsumablesTypeDto consumablesType); |
4482c7
|
37 |
/** |
0b6d6a
|
38 |
* 新建物料类数据 |
4482c7
|
39 |
* @param consumables |
Z |
40 |
* @return 操作成功的话result.data返回领建id |
|
41 |
*/ |
|
42 |
@PostMapping(value = "/sync/goods/product/add") |
a4ed34
|
43 |
Result addProduct(@RequestBody ConsumablesDto consumables); |
4482c7
|
44 |
/** |
0b6d6a
|
45 |
* 修改物料类数据 |
4482c7
|
46 |
* @param consumables |
Z |
47 |
* @return |
|
48 |
*/ |
|
49 |
@PostMapping(value = "/sync/goods/product/update") |
a4ed34
|
50 |
Result updateProduct(@RequestBody ConsumablesDto consumables); |
4482c7
|
51 |
} |