2021-08-23 16:57:25 +08:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
2021-09-16 19:07:49 +08:00
|
|
|
|
namespace ZR.Model.System.Dto
|
2021-08-23 16:57:25 +08:00
|
|
|
|
{
|
2021-12-16 11:29:03 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 文件存储输入对象
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public class SysFileDto
|
|
|
|
|
|
{
|
2022-03-10 21:39:46 +08:00
|
|
|
|
public long Id { get; set; }
|
2022-03-23 14:01:45 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 文件原名
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string RealName { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 文件类型
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string FileType { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 描述 : 存储文件名
|
|
|
|
|
|
/// 空值 : true
|
|
|
|
|
|
/// </summary>
|
2021-12-16 11:29:03 +08:00
|
|
|
|
public string FileName { get; set; }
|
2022-03-23 14:01:45 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 描述 : 文件存储地址 eg:/uploads/20220202
|
|
|
|
|
|
/// 空值 : true
|
|
|
|
|
|
/// </summary>
|
2021-12-16 11:29:03 +08:00
|
|
|
|
public string FileUrl { get; set; }
|
2022-03-23 14:01:45 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 描述 : 仓库位置 eg:/uploads
|
|
|
|
|
|
/// 空值 : true
|
|
|
|
|
|
/// </summary>
|
2021-12-16 11:29:03 +08:00
|
|
|
|
public string StorePath { get; set; }
|
2022-03-23 14:01:45 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 描述 : 文件大小
|
|
|
|
|
|
/// 空值 : true
|
|
|
|
|
|
/// </summary>
|
2021-12-16 11:29:03 +08:00
|
|
|
|
public string FileSize { get; set; }
|
2022-03-23 14:01:45 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 描述 : 文件扩展名
|
|
|
|
|
|
/// 空值 : true
|
|
|
|
|
|
/// </summary>
|
2021-12-16 11:29:03 +08:00
|
|
|
|
public string FileExt { get; set; }
|
2022-03-23 14:01:45 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 描述 : 创建人
|
|
|
|
|
|
/// 空值 : true
|
|
|
|
|
|
/// </summary>
|
2021-12-16 11:29:03 +08:00
|
|
|
|
public string Create_by { get; set; }
|
2022-03-23 14:01:45 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 描述 : 上传时间
|
|
|
|
|
|
/// 空值 : true
|
|
|
|
|
|
/// </summary>
|
2021-12-16 11:29:03 +08:00
|
|
|
|
public DateTime? Create_time { get; set; }
|
2022-03-23 14:01:45 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 描述 : 存储类型
|
|
|
|
|
|
/// 空值 : true
|
|
|
|
|
|
/// </summary>
|
2021-12-16 11:29:03 +08:00
|
|
|
|
public int? StoreType { get; set; }
|
2022-03-23 14:01:45 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 描述 : 访问路径
|
|
|
|
|
|
/// 空值 : true
|
|
|
|
|
|
/// </summary>
|
2021-12-16 11:29:03 +08:00
|
|
|
|
public string AccessUrl { get; set; }
|
2022-03-23 14:01:45 +08:00
|
|
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
|
}
|
2021-12-16 11:29:03 +08:00
|
|
|
|
}
|
2021-08-23 16:57:25 +08:00
|
|
|
|
public class SysFileQueryDto : PagerInfo
|
|
|
|
|
|
{
|
2021-12-16 11:29:03 +08:00
|
|
|
|
public DateTime? BeginCreate_time { get; set; }
|
|
|
|
|
|
public DateTime? EndCreate_time { get; set; }
|
|
|
|
|
|
public int? StoreType { get; set; }
|
2022-03-10 21:39:46 +08:00
|
|
|
|
public long? FileId { get; set; }
|
2021-08-23 16:57:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|