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); }