| | |
| | | |
| | | |
| | | @ApiOperation("用户导出") |
| | | @PostMapping("/import") |
| | | @PostMapping("/export") |
| | | public void exportUser(HttpServletResponse response) { |
| | | List<UmsUserDto> umsUserDtos = adminService.userExp(); |
| | | String sheetName = "用户导出"; |
| | | EasyExcelUtils.export(response, sheetName, UmsUserDto.class, umsUserDtos); |
| | | } |
| | | |
| | | @ApiOperation("用户导入") |
| | | @PostMapping("/import") |
| | | public CommonResult importUser(MultipartFile file) throws IOException { |
| | | EasyExcelUtils.importDepartFile(file); |
| | | return CommonResult.success(true, "导入成功"); |
| | | } |
| | | |
| | | |
| | | |
| | | @ApiOperation("获取指定用户信息") |
| | | @RequestMapping(value = "/{id}", method = RequestMethod.GET) |