From fc8b51f40e71aa09bb49f407c1e9f68ac94ceb58 Mon Sep 17 00:00:00 2001
From: mitao <2763622819@qq.com>
Date: 星期一, 29 七月 2024 18:51:32 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/service/IGoodsBrandService.java |   33 ++++++++++++++++++++++++++++++++-
 1 files changed, 32 insertions(+), 1 deletions(-)

diff --git a/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/service/IGoodsBrandService.java b/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/service/IGoodsBrandService.java
index f84a1d9..3fbcd1c 100644
--- a/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/service/IGoodsBrandService.java
+++ b/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/service/IGoodsBrandService.java
@@ -1,7 +1,12 @@
 package com.ruoyi.goods.service;
 
-import com.ruoyi.goods.domain.pojo.GoodsBrand;
 import com.baomidou.mybatisplus.extension.service.IService;
+import com.ruoyi.common.core.utils.page.PageDTO;
+import com.ruoyi.goods.controller.management.dto.GoodsBrandDTO;
+import com.ruoyi.goods.controller.management.dto.GoodsBrandQuery;
+import com.ruoyi.goods.controller.management.vo.GoodsBrandVO;
+import com.ruoyi.system.api.domain.GoodsBrand;
+import java.util.List;
 
 /**
  * <p>
@@ -13,4 +18,30 @@
  */
 public interface IGoodsBrandService extends IService<GoodsBrand> {
 
+    /**
+     * 获取商品品牌列表。
+     * <p>此方法通过调用{@code list()}方法获取原始列表,并使用BeanUtils的{@code copyList}方法将其复制为{@code
+     * GoodsBrandVO}类型的列表后返回。</p>
+     *
+     * @return 返回一个{@code GoodsBrandVO}类型的列表,包含商品品牌信息。
+     */
+    List<GoodsBrandVO> getGoodsBrandList();
+
+    /**
+     * 获取商品品牌的分页信息
+     *
+     * @param query 包含查询条件和分页信息的查询对象
+     * @return 返回商品品牌分页DTO,包含分页信息和品牌列表
+     */
+    PageDTO<GoodsBrandVO> getGoodsBrandPage(GoodsBrandQuery query);
+
+    /**
+     * 保存或更新商品品牌信息。
+     *
+     * @param dto 商品品牌数据传输对象,包含商品品牌的信息。 如果dto中的id为空,则认为是新品牌,调用save方法保存;
+     *            如果id不为空,则认为是更新已有品牌,调用updateById方法更新。
+     */
+    void saveGoodsBrand(GoodsBrandDTO dto);
+
+    void delete(Long id);
 }

--
Gitblit v1.7.1