using YBEE.EQM.Core;
namespace YBEE.EQM.Application;
///
/// 添加资源文件输入参数
///
public class AddResourceFileInput
{
///
/// 资源文件类型
///
[Required]
public ResourceFileType Type { get; set; }
///
/// 来源ID
///
[Required]
public long SourceId { get; set; }
///
/// 文件名
///
[Required]
public string FileName { get; set; }
///
/// 文件路径
///
[Required]
public string FilePath { get; set; }
///
/// 扩展名
///
[Required]
public string FileExtName { get; set; }
///
/// 文件大小(字节Byte)
///
public long FileSize { get; set; } = 0;
///
/// 备注
///
public string Remark { get; set; } = "";
}
///
/// 上传资源文件输入参数
///
public class UploadResourceFileInput
{
///
/// 资源文件类型
///
[Required]
public ResourceFileType Type { get; set; }
///
/// 源ID
///
[Required]
public long SourceId { get; set; }
///
/// 备注
///
public string Remark { get; set; }
///
/// 文件
///
[Required]
public IFormFile File { get; set; }
///
/// 文件名
///
public string FileName { get; set; }
}