Files
tnb.server/common/Tnb.Common/Models/ChunkModel.cs
2023-03-13 15:00:34 +08:00

90 lines
1.8 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using JNPF.DependencyInjection;
using Microsoft.AspNetCore.Http;
namespace JNPF.Common.Models;
/// <summary>
/// 文件分片模型
/// 版 本V3.3.3
/// 版 权拓通智联科技有限公司http://www.tuotong-tech.com
/// 作 者JNPF开发平台组.
/// </summary>
[SuppressSniffer]
public class ChunkModel
{
/// <summary>
/// 当前文件块从1开始.
/// </summary>
public int chunkNumber { get; set; }
/// <summary>
/// 当前分块大小.
/// </summary>
public int currentChunkSize { get; set; }
/// <summary>
/// 分块大小.
/// </summary>
public long chunkSize { get; set; }
/// <summary>
/// 总大小.
/// </summary>
public long totalSize { get; set; }
/// <summary>
/// 文件标识.
/// </summary>
public string identifier { get; set; }
/// <summary>
/// 文件名.
/// </summary>
public string fileName { get; set; }
/// <summary>
/// 相对路径.
/// </summary>
public string relativePath { get; set; }
/// <summary>
/// 总块数.
/// </summary>
public int totalChunks { get; set; }
/// <summary>
/// 文件存储类型.
/// </summary>
public string type { get; set; }
/// <summary>
/// 文件后缀.
/// </summary>
public string extension { get; set; }
/// <summary>
/// 文件类型.
/// </summary>
public string fileType { get; set; }
/// <summary>
/// 上级id.
/// </summary>
public string parentId { get; set; }
/// <summary>
/// 文件大小.
/// </summary>
public string fileSize { get; set; }
/// <summary>
/// 是否生成文件名.
/// </summary>
public bool isUpdateName { get; set; } = true;
/// <summary>
/// 文件.
/// </summary>
public IFormFile file { get; set; }
}