using System; using System.Collections.Generic; using System.Text; namespace ZR.Model.System.Dto { /// /// 文件存储输入对象 /// public class SysFileDto { public long Id { get; set; } /// /// 文件原名 /// public string RealName { get; set; } /// /// 文件类型 /// public string FileType { get; set; } /// /// 描述 : 存储文件名 /// 空值 : true /// public string FileName { get; set; } /// /// 描述 : 文件存储地址 eg:/uploads/20220202 /// 空值 : true /// public string FileUrl { get; set; } /// /// 描述 : 仓库位置 eg:/uploads /// 空值 : true /// public string StorePath { get; set; } /// /// 描述 : 文件大小 /// 空值 : true /// public string FileSize { get; set; } /// /// 描述 : 文件扩展名 /// 空值 : true /// public string FileExt { get; set; } /// /// 描述 : 创建人 /// 空值 : true /// public string Create_by { get; set; } /// /// 描述 : 上传时间 /// 空值 : true /// public DateTime? Create_time { get; set; } /// /// 描述 : 存储类型 /// 空值 : true /// public int? StoreType { get; set; } /// /// 描述 : 访问路径 /// 空值 : true /// public string AccessUrl { get; set; } public SysFileDto() { } public SysFileDto(string originFileName, string fileName, string ext, string fileSize, string storePath, string accessUrl, string create_by) { StorePath = storePath; RealName = originFileName; FileName = fileName; FileExt = ext; FileSize = fileSize; AccessUrl = accessUrl; Create_by = create_by; Create_time = DateTime.Now; } } public class SysFileQueryDto : PagerInfo { public DateTime? BeginCreate_time { get; set; } public DateTime? EndCreate_time { get; set; } public int? StoreType { get; set; } public long? FileId { get; set; } } }