| ¶Ô±ÈÐÂÎļþ |
| | |
| | | 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); |
| | | |
| | | } |