| 对比新文件 |
| | |
| | | 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); |
| | | |
| | | } |