controller
@RequiresPermissions("system:role:c")
@RequestMapping(method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE)
@ResponseBody
public ResponseEntity<?> create(@RequestBody RoleRequest roleRequest) {
Role role = roleRequest.toModel();
return new ResponseEntity(role, HttpStatus.CREATED);
}