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))); + } + + /* + * 删除品牌信息 + * */ + + + + + + + }