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 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 ConsumablesType consumablesType);
|
/**
|
* 修改指定ID分类节点 - 各类型通用
|
* @param consumablesType
|
* @return
|
*/
|
@PostMapping(value = "/sync/goods/category/update")
|
Result updateCategory(@RequestBody ConsumablesType consumablesType);
|
/**
|
* 删除指定ID分类节点 - 各类型通用
|
* @param consumablesType
|
* @return
|
*/
|
@PostMapping(value = "/sync/goods/category/delete")
|
Result deleteCategory(@RequestBody ConsumablesType consumablesType);
|
/**
|
* 删除指定ID分类节点 - 各类型通用
|
* @param consumables
|
* @return 操作成功的话result.data返回领建id
|
*/
|
@PostMapping(value = "/sync/goods/product/add")
|
Result addProduct(@RequestBody Consumables consumables);
|
/**
|
* 删除指定ID分类节点 - 各类型通用
|
* @param consumables
|
* @return
|
*/
|
@PostMapping(value = "/sync/goods/product/update")
|
Result updateProduct(@RequestBody Consumables consumables);
|
}
|