| | |
| | | @ApiImplicitParam(name = "path", value = "路径", dataType = "String", paramType = "query") |
| | | }) |
| | | @GetMapping(value = "/selectFiles") |
| | | public ResponseMsg<List<MetaEntity>> selectFiles(String path) { |
| | | public ResponseMsg<List<MetaFileEntity>> selectFiles(String path) { |
| | | try { |
| | | List<MetaEntity> list = baseUploadService.selectFiles(path, EXT_LIST); |
| | | List<MetaFileEntity> list = baseUploadService.selectFiles(path, EXT_LIST); |
| | | |
| | | return success(list); |
| | | } catch (Exception ex) { |
| | |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/deleteFiles") |
| | | public ResponseMsg<Object> deleteFiles(@RequestBody List<MetaEntity> list, HttpServletRequest req) { |
| | | public ResponseMsg<Object> deleteFiles(@RequestBody List<MetaFileEntity> list, HttpServletRequest req) { |
| | | try { |
| | | UserEntity ue = tokenService.getCurrentUser(req); |
| | | if (ue == null) { |
| | |
| | | @ApiImplicitParam(name = "path", value = "路径", dataType = "String", paramType = "query") |
| | | }) |
| | | @GetMapping(value = "/selectFiles2") |
| | | public ResponseMsg<List<MetaEntity>> selectFiles2(String path) { |
| | | public ResponseMsg<List<MetaFileEntity>> selectFiles2(String path) { |
| | | try { |
| | | List<MetaEntity> list = baseUploadService.selectFiles(path, null); |
| | | List<MetaFileEntity> list = baseUploadService.selectFiles(path, null); |
| | | |
| | | return success(list); |
| | | } catch (Exception ex) { |