| | |
| | | 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> |
| | |
| | | */ |
| | | 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); |
| | | } |