v 1.1.4 新增文件上传中转 七牛云

This commit is contained in:
2025-06-18 17:19:29 +08:00
parent c12e1b5d65
commit 7f269c8b04
15 changed files with 921 additions and 19 deletions
+47
View File
@@ -0,0 +1,47 @@
using System.ComponentModel.DataAnnotations;
namespace LMS.Repository.DB;
public class FileUploads
{
[Key]
public long Id { get; set; }
[Required]
[StringLength(50)]
public long UserId { get; set; }
[Required]
[StringLength(255)]
public string FileName { get; set; }
[Required]
[StringLength(500)]
public string FileKey { get; set; }
public long FileSize { get; set; }
[Required]
[StringLength(100)]
public string ContentType { get; set; }
[Required]
[StringLength(100)]
public string Hash { get; set; }
[Required]
[StringLength(1000)]
public string QiniuUrl { get; set; }
public DateTime UploadTime { get; set; }
[StringLength(20)]
public string Status { get; set; } = "active";
public DateTime CreatedAt { get; set; }
/// <summary>
/// 删除时间 ,默认为最大值,表示未删除
/// </summary>
public DateTime DeleteTime { get; set; } = DateTime.MaxValue;
}