From 02cf2c1bc955e402cab0bb4dc710c112b2e80afd Mon Sep 17 00:00:00 2001 From: wxy Date: Tue, 12 Mar 2024 15:03:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=93=81=E7=89=8C=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/BrandInfoController.java | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/controller/BrandInfoController.java b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/controller/BrandInfoController.java index b550466..a68b886 100644 --- a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/controller/BrandInfoController.java +++ b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/controller/BrandInfoController.java @@ -8,6 +8,7 @@ import com.muyu.common.log.annotation.Log; import com.muyu.common.log.enums.BusinessType; import com.muyu.common.security.annotation.RequiresPermissions; import com.muyu.product.domain.BrandInfo; +import com.muyu.product.domain.req.BrandInfoEditReq; import com.muyu.product.domain.req.BrandInfoQueryReq; import com.muyu.product.domain.req.BrandInfoSaveReq; import com.muyu.product.service.BrandInfoService; @@ -71,5 +72,26 @@ public class BrandInfoController extends BaseController { return toAjax(brandInfoService.save(BrandInfo.saveBuild(brandInfoSaveReq))); } + /* + * 修改品牌信息 + * */ + @RequiresPermissions("product:brand:edit") + @Log(title = "品牌信息",businessType = BusinessType.UPDATE) + @PutMapping("{id}") + @ApiOperation("修改品牌信息") + public Resultedit(@PathVariable Long id , @RequestBody BrandInfoEditReq brandInfoEditReq){ + return toAjax(brandInfoService.updateById(BrandInfo.editBuild(id,brandInfoEditReq))); + } + + /* + * 删除品牌信息 + * */ + + + + + + + }