This commit is contained in:
@@ -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
|
||||
|
||||
@@ -8,6 +8,6 @@
|
||||
/// <summary>
|
||||
/// 文件Id
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
public string Id { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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; // 文件原始名称
|
||||
|
||||
Reference in New Issue
Block a user