You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

65 lines
1.3 KiB

using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Wood.Entity;
using Wood.Entity.SystemManage;
namespace Wood.Service.SystemManage.Dto
{
public class FileDto : EntityIdBase
{
/// <summary>
/// 打包Guid
/// </summary>
public string? PackageCode { get; set; }
/// <summary>
/// 仓储名称
/// </summary>
public string? BucketName { get; set; }
/// <summary>
/// 文件名称(上传时名称)
/// </summary>文件名称
public string? FileName { get; set; }
/// <summary>
/// 文件后缀
/// </summary>
public string? Suffix { get; set; }
/// <summary>
/// 存储路径
/// </summary>
public string? FilePath { get; set; }
/// <summary>
/// 文件大小KB
/// </summary>
public string? SizeKb { get; set; }
/// <summary>
/// 文件大小信息-计算后的
/// </summary>
public string? SizeInfo { get; set; }
/// <summary>
/// 桥接 图片路径
/// 用于区别访问不同仓储的图片
/// </summary>
public string? BridgeFilePath
{
get
{
if (BucketName == "local")
return "\\" + FilePath!.Trim('\\');
else
return "\\fromBucket/" + BucketName + "\\" + FilePath!.Trim('\\');
}
}
}
}