src/Framework/Utils/Utils.Core/Result/FileDownloadModel.cs
(完整代码) 847Busing System.Web;
namespace NetModular.Lib.Utils.Core.Result
{
/// <summary>
/// 文件下载
/// </summary>
public class FileDownloadModel
{
/// <summary>
/// 文件完整路径
/// </summary>
public string FilePath { get; set; }
private string _name;
/// <summary>
/// 文件名称
/// </summary>
public string Name
{
get => HttpUtility.UrlEncode(_name);
set => _name = value;
}
/// <summary>
/// 多媒体类型
/// </summary>
public string MediaType { get; set; }
public FileDownloadModel(string filePath, string name, string mediaType)
{
FilePath = filePath;
Name = name;
MediaType = mediaType ?? "";
}
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
