| | |
| | | } |
| | | |
| | | /** |
| | | * 修改密码 |
| | | */ |
| | | @PostMapping("/update-password") |
| | | @ApiOperationSupport(order = 9) |
| | | @ApiOperation(value = "修改密码", notes = "传入密码") |
| | | public R updatePassword(@ApiParam(value = "旧密码", required = true) @RequestParam String oldPassword, |
| | | @ApiParam(value = "新密码", required = true) @RequestParam String newPassword, |
| | | @ApiParam(value = "新密码", required = true) @RequestParam String newPassword1) { |
| | | boolean temp = userWxService.updatePassword(AuthUtil.getUserId(), oldPassword, newPassword, newPassword1); |
| | | return R.status(temp); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 删除 |
| | | */ |
| | | @PostMapping("/remove") |
| | |
| | | return R.status(userWxService.removeUser(ids)); |
| | | } |
| | | |
| | | /** |
| | | * 导出用户 |
| | | */ |
| | | @GetMapping("export-user") |
| | | @ApiOperationSupport(order = 13) |
| | | @ApiOperation(value = "导出用户", notes = "传入user") |
| | | public void exportUser(@ApiIgnore @RequestParam Map<String, Object> user, BladeUser bladeUser, HttpServletResponse response) { |
| | | List<UserWxExcel> list = userWxService.exportUser(user); |
| | | ExcelUtil.export(response, "小程序用户数据" + DateUtil.time(), "用户数据表", list, UserWxExcel.class); |
| | | } |
| | | |
| | | } |