From 6b5f7c66fc40d7f6099d561e31a34fbd50dd20d3 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期三, 01 七月 2026 15:54:57 +0800
Subject: [PATCH] 初始化项目
---
yudao-module-mdm/src/main/java/cn/iocoder/yudao/module/mdm/service/brand/MdmBrandService.java | 102 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 102 insertions(+), 0 deletions(-)
diff --git a/yudao-module-mdm/src/main/java/cn/iocoder/yudao/module/mdm/service/brand/MdmBrandService.java b/yudao-module-mdm/src/main/java/cn/iocoder/yudao/module/mdm/service/brand/MdmBrandService.java
new file mode 100644
index 0000000..66e35dc
--- /dev/null
+++ b/yudao-module-mdm/src/main/java/cn/iocoder/yudao/module/mdm/service/brand/MdmBrandService.java
@@ -0,0 +1,102 @@
+package cn.iocoder.yudao.module.mdm.service.brand;
+
+import cn.iocoder.yudao.framework.common.pojo.PageResult;
+import cn.iocoder.yudao.module.mdm.controller.admin.brand.vo.MdmBrandPageReqVO;
+import cn.iocoder.yudao.module.mdm.controller.admin.brand.vo.MdmBrandSaveReqVO;
+import cn.iocoder.yudao.module.mdm.dal.dataobject.brand.MdmBrandDO;
+import jakarta.validation.Valid;
+
+import java.util.Collection;
+import java.util.List;
+import java.util.Map;
+
+import static cn.iocoder.yudao.framework.common.util.collection.CollectionUtils.convertMap;
+
+/**
+ * MDM 鍝佺墝 Service 鎺ュ彛
+ *
+ * @author 鑺嬮亾婧愮爜
+ */
+public interface MdmBrandService {
+
+ /**
+ * 鍒涘缓鍝佺墝
+ *
+ * @param createReqVO 鍒涘缓淇℃伅
+ * @return 缂栧彿
+ */
+ Long createBrand(@Valid MdmBrandSaveReqVO createReqVO);
+
+ /**
+ * 鏇存柊鍝佺墝
+ *
+ * @param updateReqVO 鏇存柊淇℃伅
+ */
+ void updateBrand(@Valid MdmBrandSaveReqVO updateReqVO);
+
+ /**
+ * 鏇存柊鍝佺墝鐘舵��
+ *
+ * @param id 缂栧彿
+ * @param status 鐘舵��
+ */
+ void updateBrandStatus(Long id, Integer status);
+
+ /**
+ * 鍒犻櫎鍝佺墝
+ *
+ * @param id 缂栧彿
+ */
+ void deleteBrand(Long id);
+
+ /**
+ * 鑾峰緱鍝佺墝
+ *
+ * @param id 缂栧彿
+ * @return 鍝佺墝
+ */
+ MdmBrandDO getBrand(Long id);
+
+ /**
+ * 鏍¢獙鍝佺墝瀛樺湪
+ *
+ * @param id 缂栧彿
+ * @return 鍝佺墝
+ */
+ MdmBrandDO validateBrandExists(Long id);
+
+ /**
+ * 鑾峰緱鍝佺墝鍒嗛〉
+ *
+ * @param pageReqVO 鍒嗛〉鏌ヨ
+ * @return 鍝佺墝鍒嗛〉
+ */
+ PageResult<MdmBrandDO> getBrandPage(MdmBrandPageReqVO pageReqVO);
+
+ /**
+ * 鑾峰緱鍝佺墝鍒楄〃
+ *
+ * @param ids 缂栧彿鏁扮粍
+ * @return 鍝佺墝鍒楄〃
+ */
+ List<MdmBrandDO> getBrandList(Collection<Long> ids);
+
+ /**
+ * 鑾峰緱鍝佺墝 Map
+ *
+ * @param ids 缂栧彿鏁扮粍
+ * @return 鍝佺墝 Map
+ */
+ default Map<Long, MdmBrandDO> getBrandMap(Collection<Long> ids) {
+ return convertMap(getBrandList(ids), MdmBrandDO::getId);
+ }
+
+ /**
+ * 鏍规嵁缂栫爜鑾峰彇鍝佺墝
+ *
+ * @param code 鍝佺墝缂栫爜
+ * @return 鍝佺墝
+ */
+ MdmBrandDO getBrandByCode(String code);
+
+}
--
Gitblit v1.9.3