| | |
| | | public Response updateRoleState(@RequestParam int roleId,@RequestParam int state){ |
| | | return roleService.updateRoleState(roleId,state); |
| | | } |
| | | |
| | | @DeleteMapping("deleteRole") |
| | | @ApiOperation(value = "删除角色") |
| | | public Response deleteRole(@RequestParam int roleId){ |
| | | return roleService.deleteRole(roleId); |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | /*public Response deleteUser(int id){ |
| | | User user =userMapper.selectById(id); |
| | | user.setState(2); |
| | | if(userMapper.updateById(user)>0){ |
| | | return new Response().setMsg(1,"删除成功"); |
| | | }else { |
| | | return new Response().setMsg(0,"删除失败"); |
| | | } |
| | | }*/ |
| | | |
| | | public Response delete(int id) { |
| | | if (userMapper.deleteById(id) > 0) { |