From 6a48d04a36bc459ed761d787ee3d537652185d36 Mon Sep 17 00:00:00 2001
From: liu <2021943741@qq.com>
Date: 星期二, 27 十月 2026 15:06:50 +0800
Subject: [PATCH] refactor(permission): 清理新高电力查询菜单及权限注解

---
 yudao-module-mdm/src/main/java/cn/iocoder/yudao/module/mdm/api/category/MdmItemCategoryApi.java |   50 ++++++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 48 insertions(+), 2 deletions(-)

diff --git a/yudao-module-mdm/src/main/java/cn/iocoder/yudao/module/mdm/api/category/MdmItemCategoryApi.java b/yudao-module-mdm/src/main/java/cn/iocoder/yudao/module/mdm/api/category/MdmItemCategoryApi.java
index 17f4686..b9655ef 100644
--- a/yudao-module-mdm/src/main/java/cn/iocoder/yudao/module/mdm/api/category/MdmItemCategoryApi.java
+++ b/yudao-module-mdm/src/main/java/cn/iocoder/yudao/module/mdm/api/category/MdmItemCategoryApi.java
@@ -2,6 +2,7 @@
 
 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;
@@ -9,7 +10,7 @@
 /**
  * MDM 鐗╂枡鍒嗙被 API 鎺ュ彛
  *
- * @author 鑺嬮亾婧愮爜
+ * @author 瓒呯骇绠$悊鍛�
  */
 public interface MdmItemCategoryApi {
 
@@ -22,6 +23,14 @@
      * @return 鐗╂枡鍒嗙被
      */
     CommonResult<MdmItemCategoryRespDTO> getItemCategory(Long id);
+
+    /**
+     * 鏍规嵁缂栫爜鑾峰彇鐗╂枡鍒嗙被
+     *
+     * @param code 鍒嗙被缂栫爜
+     * @return 鐗╂枡鍒嗙被
+     */
+    CommonResult<MdmItemCategoryRespDTO> getItemCategoryByCode(String code);
 
     /**
      * 鑾峰彇鐗╂枡鍒嗙被鍒楄〃
@@ -39,4 +48,41 @@
      */
     CommonResult<MdmItemCategoryRespDTO> validateItemCategoryExists(Long id);
 
-}
\ No newline at end of file
+    /**
+     * 鏍规嵁鐗╂枡/浜у搧鏍囪瘑鑾峰彇鍒嗙被
+     *
+     * @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);
+
+}

--
Gitblit v1.9.3