From fe2d5b14031edbe43238770fb1fc21e8a322b51a Mon Sep 17 00:00:00 2001 From: rentaiming <806181062@qq.com> Date: 星期四, 13 六月 2024 18:18:08 +0800 Subject: [PATCH] 用户端商品 --- ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/controller/management/MgtGoodsBrandController.java | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/controller/management/MgtGoodsBrandController.java b/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/controller/management/MgtGoodsBrandController.java index 2a5b9a0..7d52068 100644 --- a/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/controller/management/MgtGoodsBrandController.java +++ b/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/controller/management/MgtGoodsBrandController.java @@ -3,12 +3,13 @@ import com.ruoyi.common.core.domain.R; 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.goods.controller.management.dto.GoodsBrandDTO; +import com.ruoyi.goods.controller.management.dto.GoodsBrandQuery; +import com.ruoyi.goods.controller.management.vo.GoodsBrandVO; import com.ruoyi.goods.service.IGoodsBrandService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.validation.annotation.Validated; @@ -31,7 +32,7 @@ @RestController @RequestMapping("/mgt/goods-brand") @RequiredArgsConstructor -@Api(value = "管理后台商品品牌相关接口", tags = {"管理后台接口"}) +@Api(value = "管理后台商品品牌相关接口", tags = {"管理后台-商品品牌相关接口"}) public class MgtGoodsBrandController { private final IGoodsBrandService goodsBrandService; @@ -71,7 +72,8 @@ */ @ApiOperation(value = "删除商品品牌", notes = "删除商品品牌") @DeleteMapping("/{id}") - public R<Void> deleteGoodsBrand(@PathVariable("id") Long id) { + public R<Void> deleteGoodsBrand( + @ApiParam(name = "id", value = "品牌id", required = true) @PathVariable("id") Long id) { // 通过ID删除商品品牌 goodsBrandService.removeById(id); return R.ok(); -- Gitblit v1.7.1