| | |
| | | package com.hz.his.feign.service.sync; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.hx.resultTool.Result; |
| | | import com.hz.his.dto.material.Consumables; |
| | | import com.hz.his.dto.material.ConsumablesType; |
| | | 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") |
| | | @FeignClient(name="phi-platform-user",path = "/his_synchro",contextId = "synchro-goods") |
| | | public interface SyncGoodsService { |
| | | |
| | | /** |
| | |
| | | * @return 操作成功的话result.data返回领建id |
| | | */ |
| | | @PostMapping(value = "/sync/goods/category/add") |
| | | Result addCategory(@RequestBody ConsumablesType consumablesType); |
| | | Result addCategory(@RequestBody ConsumablesTypeDto consumablesType); |
| | | /** |
| | | * 修改指定ID分类节点 - 各类型通用 |
| | | * @param consumablesType |
| | | * @return |
| | | */ |
| | | @PostMapping(value = "/sync/goods/category/update") |
| | | Result updateCategory(@RequestBody ConsumablesType consumablesType); |
| | | Result updateCategory(@RequestBody ConsumablesTypeDto consumablesType); |
| | | /** |
| | | * 删除指定ID分类节点 - 各类型通用 |
| | | * @param consumablesType |
| | | * @return |
| | | */ |
| | | @PostMapping(value = "/sync/goods/category/delete") |
| | | Result deleteCategory(@RequestBody ConsumablesType consumablesType); |
| | | Result deleteCategory(@RequestBody ConsumablesTypeDto consumablesType); |
| | | /** |
| | | * 删除指定ID分类节点 - 各类型通用 |
| | | * 新建物料类数据 |
| | | * @param consumables |
| | | * @return 操作成功的话result.data返回领建id |
| | | */ |
| | | @PostMapping(value = "/sync/goods/product/add") |
| | | Result addProduct(@RequestBody Consumables consumables); |
| | | Result addProduct(@RequestBody ConsumablesDto consumables); |
| | | /** |
| | | * 删除指定ID分类节点 - 各类型通用 |
| | | * 修改物料类数据 |
| | | * @param consumables |
| | | * @return |
| | | */ |
| | | @PostMapping(value = "/sync/goods/product/update") |
| | | Result updateProduct(@RequestBody Consumables consumables); |
| | | Result updateProduct(@RequestBody ConsumablesDto consumables); |
| | | } |