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
+39
View File
@@ -0,0 +1,39 @@
using LMS.Repository.DB;
using System.ComponentModel.DataAnnotations;
namespace LMS.Repository.DTO
{
public class FileUploadDto
{
public class ByteUploadRequest
{
//public required string FileBytes { get; set; }
/// <summary>
/// 文件的base64
/// </summary>
public required string File { get; set; }
public required string FileName { get; set; }
public required string ContentType { get; set; }
public Dictionary<string, string> Metadata { get; set; } = new();
}
public class UploadResult
{
public bool Success { get; set; }
public string Message { get; set; }
public string Url { get; set; }
public string FileKey { get; set; }
public string Hash { get; set; }
public long FileId { get; set; }
public long FileSize { get; set; }
}
public class FileListResponse
{
public List<FileUploads> Files { get; set; }
public int TotalCount { get; set; }
public int Page { get; set; }
public int PageSize { get; set; }
}
}
}