云
2026-10-26 63ba72f5d65a3a4dcd56d9228582042448af61d7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
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);
 
}