|
|
@@ -1,48 +0,0 @@
|
|
|
-package cn.reghao.oss.sdk.model;
|
|
|
-
|
|
|
-import lombok.Getter;
|
|
|
-import lombok.Setter;
|
|
|
-
|
|
|
-import java.io.File;
|
|
|
-import java.io.Serializable;
|
|
|
-
|
|
|
-/**
|
|
|
- * @author reghao
|
|
|
- * @date 2022-04-25 10:42:38
|
|
|
- */
|
|
|
-@Getter
|
|
|
-@Setter
|
|
|
-public class UploadFilePart implements Serializable {
|
|
|
- private static final long serialVersionUID = 1L;
|
|
|
-
|
|
|
- private byte[] bytes;
|
|
|
- private int channelId;
|
|
|
- private String pid;
|
|
|
- // 文件标识
|
|
|
- private String identifier;
|
|
|
- private String filename;
|
|
|
- private String relativePath;
|
|
|
- // 文件大小
|
|
|
- private Long totalSize;
|
|
|
- // 分片文件大小
|
|
|
- private Long chunkSize;
|
|
|
- // 当前分片文件大小
|
|
|
- private Integer currentChunkSize;
|
|
|
- // 分片文件数量
|
|
|
- private Integer totalChunks;
|
|
|
- // 当前分片文件索引
|
|
|
- private Integer chunkNumber;
|
|
|
- private String partSha256sum;
|
|
|
-
|
|
|
- public UploadFilePart(int channelId, String pid, String identifier, String filename, String relativePath,
|
|
|
- long totalSize, long chunkSize, int totalChunks) {
|
|
|
- this.channelId = channelId;
|
|
|
- this.pid = pid;
|
|
|
- this.identifier = identifier;
|
|
|
- this.filename = filename;
|
|
|
- this.relativePath = relativePath;
|
|
|
- this.totalSize = totalSize;
|
|
|
- this.chunkSize = chunkSize;
|
|
|
- this.totalChunks = totalChunks;
|
|
|
- }
|
|
|
-}
|