87 lines
2.5 KiB
C#
87 lines
2.5 KiB
C#
using Newtonsoft.Json;
|
|
using SqlSugar;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace ZR.Model.System
|
|
{
|
|
[Tenant("0")]
|
|
[SugarTable("sys_file")]
|
|
public class SysFile
|
|
{
|
|
/// <summary>
|
|
/// 描述 : 自增id
|
|
/// 空值 : false
|
|
/// </summary>
|
|
[JsonConverter(typeof(ValueToStringConverter))]
|
|
[SugarColumn(IsPrimaryKey = true)]
|
|
public long Id { get; set; }
|
|
/// <summary>
|
|
/// 文件真实名
|
|
/// </summary>
|
|
public string RealName { get; set; }
|
|
/// <summary>
|
|
/// 文件类型
|
|
/// </summary>
|
|
public string FileType { get; set; }
|
|
/// <summary>
|
|
/// 描述 : 文件名
|
|
/// 空值 : true
|
|
/// </summary>
|
|
public string FileName { get; set; }
|
|
/// <summary>
|
|
/// 描述 : 文件存储地址
|
|
/// 空值 : true
|
|
/// </summary>
|
|
public string FileUrl { get; set; }
|
|
/// <summary>
|
|
/// 描述 : 仓库位置
|
|
/// 空值 : true
|
|
/// </summary>
|
|
public string StorePath { get; set; }
|
|
/// <summary>
|
|
/// 描述 : 文件大小
|
|
/// 空值 : true
|
|
/// </summary>
|
|
public string FileSize { get; set; }
|
|
/// <summary>
|
|
/// 描述 : 文件扩展名
|
|
/// 空值 : true
|
|
/// </summary>
|
|
public string FileExt { get; set; }
|
|
/// <summary>
|
|
/// 描述 : 创建人
|
|
/// 空值 : true
|
|
/// </summary>
|
|
public string Create_by { get; set; }
|
|
/// <summary>
|
|
/// 描述 : 上传时间
|
|
/// 空值 : true
|
|
/// </summary>
|
|
public DateTime? Create_time { get; set; }
|
|
/// <summary>
|
|
/// 描述 : 存储类型
|
|
/// 空值 : true
|
|
/// </summary>
|
|
public int? StoreType { get; set; }
|
|
/// <summary>
|
|
/// 描述 : 访问路径
|
|
/// 空值 : true
|
|
/// </summary>
|
|
public string AccessUrl { get; set; }
|
|
|
|
public SysFile() { }
|
|
public SysFile(string realName, string fileName, string ext, string fileSize, string storePath, string accessUrl,string create_by)
|
|
{
|
|
StorePath = storePath;
|
|
RealName = realName;
|
|
FileName = fileName;
|
|
FileExt = ext;
|
|
FileSize = fileSize;
|
|
AccessUrl = accessUrl;
|
|
Create_by = create_by;
|
|
Create_time = DateTime.Now;
|
|
}
|
|
}
|
|
} |