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