Files
wenchuanyi/backend/WenChuanyi.Api/Dtos/FileInfoDto.cs
T
fanhongcai 1bfc72f9cb feat: 文传易匿名临时文件传输站初始版本
- 后端 .NET 8 + FreeSql + 阿里云 OSS,支持共享/私密/标签三种文件模式
- 前端 Vue3 + Vite + TDesign,上传/取件/管理三页
- 取件码/二维码/海报合成(含保存二维码为图片)
- deploy/ 部署文档与一键 FTP 发布脚本
- appsettings.json 含真实凭据,已 gitignore 不入库
2026-08-24 00:03:28 +08:00

23 lines
939 B
C#

namespace WenChuanyi.Api.Dtos;
/// <summary>文件信息 / 管理列表 / 标签列表 DTO(不暴露密码明文)</summary>
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; }
/// <summary>上传者 IP(安全审计):仅管理列表填充,取件/标签/公开接口不暴露</summary>
public string? UploadIp { get; set; }
public bool IsPermanent { get; set; }
public DateTime? ExpiresAt { get; set; }
public DateTime CreatedAt { get; set; }
/// <summary>剩余有效期文本(永久/已过期/N天N小时)</summary>
public string ExpireText { get; set; } = "永久";
}