品牌修改
parent
01489bcb0d
commit
02cf2c1bc9
|
@ -8,6 +8,7 @@ import com.muyu.common.log.annotation.Log;
|
||||||
import com.muyu.common.log.enums.BusinessType;
|
import com.muyu.common.log.enums.BusinessType;
|
||||||
import com.muyu.common.security.annotation.RequiresPermissions;
|
import com.muyu.common.security.annotation.RequiresPermissions;
|
||||||
import com.muyu.product.domain.BrandInfo;
|
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.BrandInfoQueryReq;
|
||||||
import com.muyu.product.domain.req.BrandInfoSaveReq;
|
import com.muyu.product.domain.req.BrandInfoSaveReq;
|
||||||
import com.muyu.product.service.BrandInfoService;
|
import com.muyu.product.service.BrandInfoService;
|
||||||
|
@ -71,5 +72,26 @@ public class BrandInfoController extends BaseController {
|
||||||
return toAjax(brandInfoService.save(BrandInfo.saveBuild(brandInfoSaveReq)));
|
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)));
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* 删除品牌信息
|
||||||
|
* */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue