| 对比新文件 |
| | |
| | | package cn.iocoder.yudao.module.mdm.api.unit; |
| | | |
| | | import cn.iocoder.yudao.framework.common.pojo.CommonResult; |
| | | import cn.iocoder.yudao.module.mdm.api.unit.dto.MdmUnitMeasureRespDTO; |
| | | |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * MDM 璁¢噺鍗曚綅 API 鎺ュ彛 |
| | | * |
| | | * @author 鑺嬮亾婧愮爜 |
| | | */ |
| | | public interface MdmUnitMeasureApi { |
| | | |
| | | String PREFIX = "/rpc-api/mdm/unit"; |
| | | |
| | | /** |
| | | * 鑾峰彇璁¢噺鍗曚綅 |
| | | * |
| | | * @param id 鍗曚綅缂栧彿 |
| | | * @return 璁¢噺鍗曚綅 |
| | | */ |
| | | CommonResult<MdmUnitMeasureRespDTO> getUnitMeasure(Long id); |
| | | |
| | | /** |
| | | * 鑾峰彇璁¢噺鍗曚綅鍒楄〃 |
| | | * |
| | | * @param ids 鍗曚綅缂栧彿鍒楄〃 |
| | | * @return 璁¢噺鍗曚綅鍒楄〃 |
| | | */ |
| | | CommonResult<List<MdmUnitMeasureRespDTO>> getUnitMeasureList(Collection<Long> ids); |
| | | |
| | | /** |
| | | * 鏍¢獙璁¢噺鍗曚綅瀛樺湪 |
| | | * |
| | | * @param id 鍗曚綅缂栧彿 |
| | | * @return 璁¢噺鍗曚綅 |
| | | */ |
| | | CommonResult<MdmUnitMeasureRespDTO> validateUnitMeasureExists(Long id); |
| | | |
| | | /** |
| | | * 鏍规嵁缂栫爜鑾峰彇璁¢噺鍗曚綅 |
| | | * |
| | | * @param code 鍗曚綅缂栫爜 |
| | | * @return 璁¢噺鍗曚綅 |
| | | */ |
| | | CommonResult<MdmUnitMeasureRespDTO> getUnitMeasureByCode(String code); |
| | | |
| | | } |