品牌修改

dev798
wxy 2024-03-12 15:03:17 +08:00
parent 01489bcb0d
commit 02cf2c1bc9
1 changed files with 22 additions and 0 deletions

View File

@ -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 Result<String>edit(@PathVariable Long id , @RequestBody BrandInfoEditReq brandInfoEditReq){
return toAjax(brandInfoService.updateById(BrandInfo.editBuild(id,brandInfoEditReq)));
}
/*
*
* */
}