From 1ab2b329a40decba8ff7eefbeb158ff259aceb6d Mon Sep 17 00:00:00 2001
From: liyong <18434998025@163.com>
Date: 星期二, 14 七月 2026 15:23:34 +0800
Subject: [PATCH] 追溯+分类接口
---
yudao-module-mdm/src/main/java/cn/iocoder/yudao/module/mdm/api/brand/MdmBrandApi.java | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 50 insertions(+), 0 deletions(-)
diff --git a/yudao-module-mdm/src/main/java/cn/iocoder/yudao/module/mdm/api/brand/MdmBrandApi.java b/yudao-module-mdm/src/main/java/cn/iocoder/yudao/module/mdm/api/brand/MdmBrandApi.java
new file mode 100644
index 0000000..8b9ff0b
--- /dev/null
+++ b/yudao-module-mdm/src/main/java/cn/iocoder/yudao/module/mdm/api/brand/MdmBrandApi.java
@@ -0,0 +1,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);
+
+}
\ No newline at end of file
--
Gitblit v1.9.3