ResourceFileOutput.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. using YBEE.EQM.Core;
  2. namespace YBEE.EQM.Application;
  3. /// <summary>
  4. /// 资源文件信息输出参数
  5. /// </summary>
  6. public class ResourceFileOutput : DEntityOutput<long>
  7. {
  8. /// <summary>
  9. /// 资源文件类型
  10. /// </summary>
  11. [Required]
  12. public ResourceFileType Type { get; set; }
  13. /// <summary>
  14. /// 来源ID
  15. /// </summary>
  16. [Required]
  17. public long SourceId { get; set; }
  18. /// <summary>
  19. /// 文件名
  20. /// </summary>
  21. [Required]
  22. public string FileName { get; set; }
  23. /// <summary>
  24. /// 文件路径
  25. /// </summary>
  26. [Required]
  27. public string FilePath { get; set; }
  28. /// <summary>
  29. /// 扩展名
  30. /// </summary>
  31. [Required]
  32. public string FileExtName { get; set; }
  33. /// <summary>
  34. /// 文件大小(字节Byte)
  35. /// </summary>
  36. [Required]
  37. public long FileSize { get; set; } = 0;
  38. /// <summary>
  39. /// 备注
  40. /// </summary>
  41. public string Remark { get; set; } = "";
  42. /// <summary>
  43. /// 缩略图
  44. /// </summary>
  45. public ResourceFileOutput ThumbResourceFile { get; set; }
  46. }