| | |
| | | |
| | | @ApiOperation("导出数据") |
| | | @GetMapping(value = "/download") |
| | | @PreAuthorize("@el.check('storage:list')") |
| | | @PreAuthorize("@el.check('storage:download')") |
| | | public void exportFile(HttpServletResponse response, LocalStorageQueryCriteria criteria) throws IOException { |
| | | localStorageService.download(localStorageService.queryAll(criteria), response); |
| | | } |
| | |
| | | headers: { 'Authorization': getToken() }, |
| | | permission: { |
| | | edit: ['admin', 'storage:edit'], |
| | | del: ['admin', 'storage:del'] |
| | | del: ['admin', 'storage:del'], |
| | | download: ['admin', 'storage:download'] |
| | | } |
| | | } |
| | | }, |