| | |
| | | |
| | | @ApiOperation("修改状态") |
| | | @PostMapping("/updateDisableById") |
| | | @RequiresPermissions("business:category:update") |
| | | @RequiresPermissions("business:goods:update") |
| | | public ApiResponse updateDisableById(@RequestBody Goods goods) { |
| | | goodsService.updateDisableById(goods); |
| | | return ApiResponse.success(null); |
| | |
| | | |
| | | @ApiOperation("批量修改状态") |
| | | @PostMapping("/batchUpdateDisableById") |
| | | @RequiresPermissions("business:category:update") |
| | | @RequiresPermissions("business:goods:update") |
| | | public ApiResponse<String> batchUpdateDisableById(@RequestBody BatchDisableDTO batchDisableDTO) { |
| | | return ApiResponse.success(goodsService.batchUpdateDisableById(batchDisableDTO)); |
| | | } |