You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
using SqlSugar;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
namespace Myshipping.Core.Entity;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 文件信息表
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarTable("sys_file")]
|
|
|
|
|
[Description("文件信息表")]
|
|
|
|
|
public class SysFile : DEntityBase
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 文件存储位置(1:阿里云,2:腾讯云,3:minio,4:本地)
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int FileLocation { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 文件仓库
|
|
|
|
|
/// </summary>
|
|
|
|
|
[MaxLength(100)]
|
|
|
|
|
public string FileBucket { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 文件名称(上传时候的文件名)
|
|
|
|
|
/// </summary>
|
|
|
|
|
[MaxLength(100)]
|
|
|
|
|
public string FileOriginName { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 文件后缀
|
|
|
|
|
/// </summary>
|
|
|
|
|
[MaxLength(50)]
|
|
|
|
|
public string FileSuffix { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 文件大小kb
|
|
|
|
|
/// </summary>
|
|
|
|
|
[MaxLength(10)]
|
|
|
|
|
public string FileSizeKb { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 文件大小信息,计算后的
|
|
|
|
|
/// </summary>
|
|
|
|
|
[MaxLength(50)]
|
|
|
|
|
public string FileSizeInfo { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 存储到bucket的名称(文件唯一标识id)
|
|
|
|
|
/// </summary>
|
|
|
|
|
[MaxLength(100)]
|
|
|
|
|
public string FileObjectName { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 存储路径
|
|
|
|
|
/// </summary>
|
|
|
|
|
[MaxLength(100)]
|
|
|
|
|
public string FilePath { get; set; }
|
|
|
|
|
}
|