SysFile.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. namespace Admin.NET.Core;
  2. /// <summary>
  3. /// 系统文件表
  4. /// </summary>
  5. [SugarTable(null, "系统文件表")]
  6. [SystemTable]
  7. public class SysFile : EntityBase
  8. {
  9. /// <summary>
  10. /// 提供者
  11. /// </summary>
  12. [SugarColumn(ColumnDescription = "提供者", Length = 128)]
  13. [MaxLength(128)]
  14. public string? Provider { get; set; }
  15. /// <summary>
  16. /// 仓储名称
  17. /// </summary>
  18. [SugarColumn(ColumnDescription = "仓储名称", Length = 128)]
  19. [MaxLength(128)]
  20. public string? BucketName { get; set; }
  21. /// <summary>
  22. /// 文件名称(上传时名称)
  23. /// </summary>文件名称
  24. [SugarColumn(ColumnDescription = "文件名称", Length = 128)]
  25. [MaxLength(128)]
  26. public string? FileName { get; set; }
  27. /// <summary>
  28. /// 文件后缀
  29. /// </summary>
  30. [SugarColumn(ColumnDescription = "文件后缀", Length = 16)]
  31. [MaxLength(16)]
  32. public string? Suffix { get; set; }
  33. /// <summary>
  34. /// 存储路径
  35. /// </summary>
  36. [SugarColumn(ColumnDescription = "存储路径", Length = 128)]
  37. [MaxLength(128)]
  38. public string? FilePath { get; set; }
  39. /// <summary>
  40. /// 文件大小KB
  41. /// </summary>
  42. [SugarColumn(ColumnDescription = "文件大小KB", Length = 16)]
  43. [MaxLength(16)]
  44. public string? SizeKb { get; set; }
  45. /// <summary>
  46. /// 文件大小信息-计算后的
  47. /// </summary>
  48. [SugarColumn(ColumnDescription = "文件大小信息", Length = 64)]
  49. [MaxLength(64)]
  50. public string? SizeInfo { get; set; }
  51. /// <summary>
  52. /// 外链地址-OSS上传后生成外链地址方便前端预览
  53. /// </summary>
  54. [SugarColumn(ColumnDescription = "外链地址", Length = 128)]
  55. [MaxLength(128)]
  56. public string? Url { get; set; }
  57. }