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);
|
|
}
|