package cn.iocoder.yudao.module.mdm.api.category;
|
|
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
|
import cn.iocoder.yudao.module.mdm.api.category.dto.MdmItemCategoryRespDTO;
|
|
import java.util.Collection;
|
import java.util.List;
|
|
/**
|
* MDM 物料分类 API 接口
|
*
|
* @author 芋道源码
|
*/
|
public interface MdmItemCategoryApi {
|
|
String PREFIX = "/rpc-api/mdm/category";
|
|
/**
|
* 获取物料分类
|
*
|
* @param id 分类编号
|
* @return 物料分类
|
*/
|
CommonResult<MdmItemCategoryRespDTO> getItemCategory(Long id);
|
|
/**
|
* 获取物料分类列表
|
*
|
* @param ids 分类编号列表
|
* @return 物料分类列表
|
*/
|
CommonResult<List<MdmItemCategoryRespDTO>> getItemCategoryList(Collection<Long> ids);
|
|
/**
|
* 校验物料分类存在
|
*
|
* @param id 分类编号
|
* @return 物料分类
|
*/
|
CommonResult<MdmItemCategoryRespDTO> validateItemCategoryExists(Long id);
|
|
}
|