2026-06-29 940c8481d2fdcf51341db4ccd6fd6fcc2d43debb
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
package cn.iocoder.yudao.module.mdm.api.brand;
 
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
import cn.iocoder.yudao.module.mdm.api.brand.dto.MdmBrandRespDTO;
 
import java.util.Collection;
import java.util.List;
 
/**
 * MDM 品牌 API 接口
 *
 * @author 芋道源码
 */
public interface MdmBrandApi {
 
    String PREFIX = "/rpc-api/mdm/brand";
 
    /**
     * 获取品牌
     *
     * @param id 品牌编号
     * @return 品牌
     */
    CommonResult<MdmBrandRespDTO> getBrand(Long id);
 
    /**
     * 获取品牌列表
     *
     * @param ids 品牌编号列表
     * @return 品牌列表
     */
    CommonResult<List<MdmBrandRespDTO>> getBrandList(Collection<Long> ids);
 
    /**
     * 校验品牌存在
     *
     * @param id 品牌编号
     * @return 品牌
     */
    CommonResult<MdmBrandRespDTO> validateBrandExists(Long id);
 
    /**
     * 根据编码获取品牌
     *
     * @param code 品牌编码
     * @return 品牌
     */
    CommonResult<MdmBrandRespDTO> getBrandByCode(String code);
 
}