package cn.iocoder.yudao.module.mes.api.item;
|
|
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
|
import cn.iocoder.yudao.module.mes.api.item.dto.MesMdItemTypeRespDTO;
|
|
import java.util.Collection;
|
import java.util.List;
|
|
/**
|
* MES 物料分类 API 接口
|
*
|
* 供其他模块(如 MDM)查询物料分类数据使用。
|
*
|
* @author 芋道源码
|
*/
|
public interface MesMdItemTypeApi {
|
|
String PREFIX = "/rpc-api/mes/item-type";
|
|
/**
|
* 获取物料分类
|
*
|
* @param id 分类编号
|
* @return 物料分类
|
*/
|
CommonResult<MesMdItemTypeRespDTO> getItemType(Long id);
|
|
/**
|
* 获取物料分类列表
|
*
|
* @param ids 分类编号列表
|
* @return 物料分类列表
|
*/
|
CommonResult<List<MesMdItemTypeRespDTO>> getItemTypeList(Collection<Long> ids);
|
|
/**
|
* 根据编码获取物料分类
|
*
|
* @param code 分类编码
|
* @return 物料分类
|
*/
|
CommonResult<MesMdItemTypeRespDTO> getItemTypeByCode(String code);
|
|
}
|