昨天 eccad5a129106377a275be4f7cdc58e99e9b95d4
yudao-module-mdm/src/main/java/cn/iocoder/yudao/module/mdm/api/category/MdmItemCategoryApi.java
对比新文件
@@ -0,0 +1,50 @@
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);
    /**
     * 鏍规嵁鐗╂枡/浜у搧鏍囪瘑鑾峰彇鍒嗙被
     *
     * @param itemOrProduct 鐗╂枡/浜у搧鏍囪瘑
     * @return 鐗╂枡鍒嗙被
     */
    CommonResult<MdmItemCategoryRespDTO> getItemCategoryByItemOrProduct(String itemOrProduct);
}