优化日志提示

This commit is contained in:
chenxudong 2025-02-26 15:12:48 +08:00
parent 545188be69
commit 9b6b837840
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ public class EdFileInfoController {
return edFileInfoService.createFolder(createFolderDTO, DataOwnEnum.COMMON.code);
}
@UserOperation(value = "作废文件夹", modelName = UserOperationModuleEnum.DATABASE)
@UserOperation(value = "作废", modelName = UserOperationModuleEnum.DATABASE)
@RequiredPermission(value = FilePermission.DELETE)
@RequestMapping("delete")
public ElectromagneticResult<?> delete(@RequestParam String id) {

View File

@ -222,7 +222,7 @@ public class EdFileInfoServiceImpl extends ServiceImpl<EdFileInfoMapper, EdFileI
.set(EdFileInfo::getEffectFlag, false)
.set(EdFileInfo::getAllDeleted, true)
.eq(EdFileInfo::getFileId, fileInfo.getFileId()));
UserThreadLocal.setSuccessInfo(fileInfo.getParentId(), id, "作废目录 {} 成功", fileInfo.getFileName());
UserThreadLocal.setSuccessInfo(fileInfo.getParentId(), id, "作废文件 {}.{} 成功", fileInfo.getFileName(), fileInfo.getFileType());
return ElectromagneticResultUtil.success(true);
}