Chunk.java 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. package jnpf.model;
  2. import io.swagger.v3.oas.annotations.media.Schema;
  3. import lombok.Data;
  4. import java.io.Serializable;
  5. @Data
  6. public class Chunk implements Serializable {
  7. /**
  8. * 当前文件块,从1开始
  9. */
  10. @Schema(description = "当前文件块")
  11. private Integer chunkNumber;
  12. /**
  13. * 分块大小
  14. */
  15. @Schema(description = "分块大小")
  16. private Long chunkSize;
  17. /**
  18. * 当前分块大小
  19. */
  20. @Schema(description = "当前分块大小")
  21. private Long currentChunkSize;
  22. /**
  23. * 总大小
  24. */
  25. @Schema(description = "总大小")
  26. private Long totalSize;
  27. /**
  28. * 文件标识
  29. */
  30. @Schema(description = "文件标识")
  31. private String identifier;
  32. /**
  33. * 文件名
  34. */
  35. @Schema(description = "文件名")
  36. private String fileName;
  37. /**
  38. * 相对路径
  39. */
  40. @Schema(description = "相对路径")
  41. private String relativePath;
  42. /**
  43. * 总块数
  44. */
  45. @Schema(description = "总块数")
  46. private Integer totalChunks;
  47. /**
  48. * 文件类型
  49. */
  50. @Schema(description = "文件类型")
  51. private String type;
  52. private String extension;
  53. private String fileType;
  54. }