- IS3StorageService 新增 GetObjectSizeAsync(HeadObject 取 ContentLength) - 新增 FileSizeBackfillHelper:读路径惰性回填历史 Size=0 的文件 - 新增 FolderSizeCalculator:后序 DFS 计算文件夹递归总大小 - GetRootFiles/GetFolder 加载时回填;GetFolderTree 计算并返回 FolderDto.Size - FolderDto 增加 Size 字段,FolderMapper.ToDto 适配 Co-Authored-By: Claude <noreply@anthropic.com>
8 lines
322 B
C#
8 lines
322 B
C#
|
|
|
|
namespace File.Application.Features.Folders.DTOs;
|
|
|
|
|
|
/// <summary>文件夹 DTO。Size = 该文件夹下所有文件递归汇总的字节大小(由 getFolderTree 计算)。</summary>
|
|
public record FolderDto(Guid Id, Guid? ParentId, string Name, string OwnerId, DateTime CreatedAt, DateTime UpdatedAt, long Size = 0);
|