This commit is contained in:
ky_sunl
2021-04-23 10:56:05 +00:00
parent bd18dd95b7
commit 02b5311f9a
15 changed files with 45 additions and 45 deletions

View File

@@ -54,7 +54,7 @@ namespace Dilon.Core.Service
/// 文件Id
/// </summary>
[Required(ErrorMessage = "文件Id不能为空")]
public long Id { get; set; }
public string Id { get; set; }
}
public class QueryFileInoInput : DeleteFileInfoInput

View File

@@ -8,6 +8,6 @@
/// <summary>
/// 文件Id
/// </summary>
public long Id { get; set; }
public string Id { get; set; }
}
}

View File

@@ -173,7 +173,7 @@ namespace Dilon.Core.Service
/// <returns></returns>
private static async Task UploadFile(IFormFile file, string pathType)
{
var fileId = IDGenerator.NextId();
var fileId = Guid.NewGuid().ToString();
var fileSizeKb = (long)(file.Length / 1024.0); // 文件大小KB
var originalFilename = file.FileName; // 文件原始名称