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 cn.iocoder.yudao.module.mdm.api.category.dto.MdmItemCategorySaveReqDTO;
|
|
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 code 分类编码
|
* @return 物料分类
|
*/
|
CommonResult<MdmItemCategoryRespDTO> getItemCategoryByCode(String code);
|
|
/**
|
* 获取物料分类列表
|
*
|
* @param ids 分类编号列表
|
* @return 物料分类列表
|
*/
|
CommonResult<List<MdmItemCategoryRespDTO>> getItemCategoryList(Collection<Long> ids);
|
|
/**
|
* 校验物料分类存在
|
*
|
* @param id 分类编号
|
* @return 物料分类
|
*/
|
CommonResult<MdmItemCategoryRespDTO> validateItemCategoryExists(Long id);
|
|
/**
|
* 根据物料/产品标识获取分类
|
*
|
* @param itemOrProduct 物料/产品标识
|
* @return 物料分类
|
*/
|
CommonResult<MdmItemCategoryRespDTO> getItemCategoryByItemOrProduct(String itemOrProduct);
|
|
/**
|
* 获取全部分类列表(含禁用)
|
*
|
* @return 分类列表
|
*/
|
CommonResult<List<MdmItemCategoryRespDTO>> getItemCategoryAllList();
|
|
/**
|
* 创建物料分类
|
*
|
* @param createReqDTO 创建信息
|
* @return 分类编号
|
*/
|
CommonResult<Long> createItemCategory(MdmItemCategorySaveReqDTO createReqDTO);
|
|
/**
|
* 更新物料分类
|
*
|
* @param updateReqDTO 更新信息
|
*/
|
CommonResult<Boolean> updateItemCategory(MdmItemCategorySaveReqDTO updateReqDTO);
|
|
/**
|
* 删除物料分类
|
*
|
* @param id 分类编号
|
*/
|
CommonResult<Boolean> deleteItemCategory(Long id);
|
|
}
|