取消了VIEW的权限
This commit is contained in:
parent
3a090c224f
commit
b58e3bd04a
|
|
@ -40,7 +40,7 @@ public class EdFileInfoController {
|
|||
return edFileInfoService.delete(id);
|
||||
}
|
||||
|
||||
@RequiredPermission(value = FilePermission.VIEW)
|
||||
// @RequiredPermission(value = FilePermission.VIEW)
|
||||
@RequestMapping("info")
|
||||
public ElectromagneticResult<?> info(@RequestBody FileInfoQueryDTO fileInfoQueryDTO) {
|
||||
return edFileInfoService.queryEdFileInfo(fileInfoQueryDTO);
|
||||
|
|
@ -121,13 +121,13 @@ public class EdFileInfoController {
|
|||
return edFileInfoService.uploadRecord(pageNum, pageSize);
|
||||
}
|
||||
|
||||
@RequiredPermission(value = FilePermission.VIEW)
|
||||
// @RequiredPermission(value = FilePermission.VIEW)
|
||||
@RequestMapping(value = "/fileDetail", method = RequestMethod.GET)
|
||||
public ElectromagneticResult<?> detail(@RequestParam String id) {
|
||||
return edFileInfoService.detail(id);
|
||||
}
|
||||
|
||||
@RequiredPermission(value = FilePermission.VIEW)
|
||||
// @RequiredPermission(value = FilePermission.VIEW)
|
||||
@RequestMapping(value = "/queryChildFolder", method = RequestMethod.GET)
|
||||
public ElectromagneticResult<?> queryChildFolder(@RequestParam String parentId) {
|
||||
return edFileInfoService.queryChildFolder(parentId);
|
||||
|
|
|
|||
|
|
@ -995,7 +995,7 @@ public class EdFileInfoServiceImpl extends ServiceImpl<EdFileInfoMapper, EdFileI
|
|||
private ElectromagneticResult<?> handCopyConflict(String targetFolderId, Integer strategy, EdFileInfo srcFileInfo, EdFileInfo destFolderInfo) {
|
||||
// 禁止同目录下移动和复制
|
||||
if (srcFileInfo.getParentId().equals(destFolderInfo.getId())) {
|
||||
String info = "禁止相同文件夹下移动文件";
|
||||
String info = "禁止相同文件夹下复制文件";
|
||||
log.info(info);
|
||||
return ElectromagneticResultUtil.fail("-1", info);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue