@PatchMapping("/valid/{valid}")
    public ResponseEntity<Void> setValid(@RequestBody List<String> ids, @PathVariable Boolean valid) {
        categoryService.setValid(ids, valid);
        return ResponseEntity.noContent().build();
    }
setValid

@param ids ids
@param valid valid
@return Void
src/main/java/com/tuituidan/openhub/controller/CategoryController.java