using SqlSugar;
namespace Admin.NET.Core.Service
{
public class FileOutput
{
///
/// 文件ID
///
public long Id { get; set; }
///
/// 文件名称
///
public string Name
{ get { return this.Id + this.Suffix; } }
///
/// 文件URL
///
public string Url { get; set; }
///
/// 文件大小
///
public string SizeKb { get; set; }
///
/// 文件后缀
///
public string Suffix { get; set; }
}
[SugarTable("sys_file")]
[NotTable]
public class MapperSysFileOutput
{
///
/// 雪花Id
///
[SugarColumn(ColumnDescription = "Id", IsPrimaryKey = true, IsIdentity = false)]
public long Id { get; set; }
public string BucketName { get; set; }
public string FileName { get; set; }
public string Suffix { get; set; }
public string FilePath { get; set; }
}
}