namespace ZR.ServiceCore.Model { [Tenant("0")] [SugarTable("sys_file", "文件存储表")] public class SysFile { /// /// 自增id /// [JsonConverter(typeof(ValueToStringConverter))] [SugarColumn(IsPrimaryKey = true)] public long Id { get; set; } /// /// 文件原名 /// public string RealName { get; set; } /// /// 文件类型 /// public string FileType { get; set; } /// /// 存储文件名 /// public string FileName { get; set; } /// /// 文件存储地址 eg:/uploads/20220202 /// public string FileUrl { get; set; } /// /// 仓库位置 eg:/uploads /// public string StorePath { get; set; } /// /// 文件大小 /// public string FileSize { get; set; } /// /// 文件扩展名 /// public string FileExt { get; set; } /// /// 创建者 /// public long Create_by { get; set; } /// /// 创建者名称 /// public string Create_name { get; set; } /// /// 上传时间 /// public DateTime? Create_time { get; set; } /// /// 存储类型 /// public int? StoreType { get; set; } /// /// 访问路径 /// public string AccessUrl { get; set; } /// /// 描述 : 文件MD5 /// 空值 : true /// public string FileMd5 { get; set; } /// /// 已加密 /// public string IsEncrypted { get; set; } /// /// 描述:文件是否已上传 /// 空值:false /// [SugarColumn(IsIgnore = true)] public bool FileExists { get; set; } public SysFile() { } public SysFile(string originFileName, string fileName, string ext, string fileSize, string storePath, long createBy, string createName) { StorePath = storePath; RealName = originFileName; FileName = fileName; FileExt = ext; FileSize = fileSize; Create_by = createBy; Create_name = createName; Create_time = DateTime.Now; } } }