namespace WenChuanyi.Api.Dtos; /// 文件信息 / 管理列表 / 标签列表 DTO(不暴露密码明文) public class FileInfoDto { public long Id { get; set; } public string PickCode { get; set; } = null!; public string FileType { get; set; } = null!; public bool HasPassword { get; set; } public string OriginalName { get; set; } = null!; public long Size { get; set; } public string? MimeType { get; set; } public int DownloadCount { get; set; } /// 上传者 IP(安全审计):仅管理列表填充,取件/标签/公开接口不暴露 public string? UploadIp { get; set; } public bool IsPermanent { get; set; } public DateTime? ExpiresAt { get; set; } public DateTime CreatedAt { get; set; } /// 剩余有效期文本(永久/已过期/N天N小时) public string ExpireText { get; set; } = "永久"; }