2026-08-10 035e28134ff1ace5d7117007dd72cd18c68f14ff
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);
}