优化文件存储

This commit is contained in:
不做码农
2022-03-10 21:39:46 +08:00
parent 3555833ae7
commit eb32117b8c
9 changed files with 57 additions and 108 deletions

View File

@@ -9,7 +9,7 @@ namespace ZR.Model.System.Dto
/// </summary>
public class SysFileDto
{
public int Id { get; set; }
public long Id { get; set; }
public string FileName { get; set; }
public string FileUrl { get; set; }
public string StorePath { get; set; }
@@ -25,6 +25,6 @@ namespace ZR.Model.System.Dto
public DateTime? BeginCreate_time { get; set; }
public DateTime? EndCreate_time { get; set; }
public int? StoreType { get; set; }
public int? FileId { get; set; }
public long? FileId { get; set; }
}
}

View File

@@ -1,4 +1,5 @@
using SqlSugar;
using Newtonsoft.Json;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;
@@ -13,7 +14,8 @@ namespace ZR.Model.System
/// 描述 : 自增id
/// 空值 : false
/// </summary>
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
[JsonConverter(typeof(ValueToStringConverter))]
[SugarColumn(IsPrimaryKey = true)]
public long Id { get; set; }
/// <summary>
/// 文件真实名