优化权限相关问题
This commit is contained in:
parent
5dfd2c6800
commit
3a090c224f
|
|
@ -94,13 +94,11 @@ public class EdFileInfoController {
|
||||||
return edFileInfoService.versionBack(fileId, targetVersion);
|
return edFileInfoService.versionBack(fileId, targetVersion);
|
||||||
}
|
}
|
||||||
|
|
||||||
@RequiredPermission(value = FilePermission.EXPORT)
|
|
||||||
@RequestMapping("batchExport")
|
@RequestMapping("batchExport")
|
||||||
public ResponseEntity<InputStreamResource> batchExport(@RequestParam String fileIds, HttpServletResponse response) throws IOException {
|
public ResponseEntity<InputStreamResource> batchExport(@RequestParam String fileIds, HttpServletResponse response) throws IOException {
|
||||||
return edFileInfoService.batchExport(fileIds, response);
|
return edFileInfoService.batchExport(fileIds, response);
|
||||||
}
|
}
|
||||||
|
|
||||||
@RequiredPermission(value = FilePermission.IMPORT)
|
|
||||||
@RequestMapping(value = "/mergeChunks", method = RequestMethod.GET)
|
@RequestMapping(value = "/mergeChunks", method = RequestMethod.GET)
|
||||||
public ElectromagneticResult<?> mergeChunks(@RequestParam String identifier,
|
public ElectromagneticResult<?> mergeChunks(@RequestParam String identifier,
|
||||||
@RequestParam String fileName,
|
@RequestParam String fileName,
|
||||||
|
|
@ -108,19 +106,16 @@ public class EdFileInfoController {
|
||||||
return edFileInfoService.mergeChunks(identifier, fileName, totalChunks);
|
return edFileInfoService.mergeChunks(identifier, fileName, totalChunks);
|
||||||
}
|
}
|
||||||
|
|
||||||
@RequiredPermission(value = FilePermission.IMPORT)
|
|
||||||
@RequestMapping(value = "/batchImport", method = RequestMethod.POST)
|
@RequestMapping(value = "/batchImport", method = RequestMethod.POST)
|
||||||
public ElectromagneticResult<?> batchImport(FileChunkDTO fileChunkDTO) {
|
public ElectromagneticResult<?> batchImport(FileChunkDTO fileChunkDTO) {
|
||||||
return edFileInfoService.batchImport(fileChunkDTO);
|
return edFileInfoService.batchImport(fileChunkDTO);
|
||||||
}
|
}
|
||||||
|
|
||||||
@RequiredPermission(value = FilePermission.IMPORT)
|
|
||||||
@RequestMapping(value = "/batchImport", method = RequestMethod.GET)
|
@RequestMapping(value = "/batchImport", method = RequestMethod.GET)
|
||||||
public ElectromagneticResult<?> checkChunkExist(FileChunkDTO fileChunkDTO) {
|
public ElectromagneticResult<?> checkChunkExist(FileChunkDTO fileChunkDTO) {
|
||||||
return edFileInfoService.checkChunkExist(fileChunkDTO);
|
return edFileInfoService.checkChunkExist(fileChunkDTO);
|
||||||
}
|
}
|
||||||
|
|
||||||
// @RequiredPermission(value = FilePermission.VIEW)
|
|
||||||
@RequestMapping(value = "/uploadRecord", method = RequestMethod.GET)
|
@RequestMapping(value = "/uploadRecord", method = RequestMethod.GET)
|
||||||
public ElectromagneticResult<?> uploadRecord(@RequestParam int pageNum, @RequestParam int pageSize) {
|
public ElectromagneticResult<?> uploadRecord(@RequestParam int pageNum, @RequestParam int pageSize) {
|
||||||
return edFileInfoService.uploadRecord(pageNum, pageSize);
|
return edFileInfoService.uploadRecord(pageNum, pageSize);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue