exa_simple_uploader.go 746 B

12345678910111213
  1. package example
  2. type ExaSimpleUploader struct {
  3. ChunkNumber string `json:"chunkNumber" gorm:"comment:当前切片标记"`
  4. CurrentChunkSize string `json:"currentChunkSize" gorm:"comment:当前切片容量"`
  5. CurrentChunkPath string `json:"currentChunkPath" gorm:"comment:切片本地路径"`
  6. TotalSize string `json:"totalSize" gorm:"comment:总容量"`
  7. Identifier string `json:"identifier" gorm:"comment:文件标识(md5)"`
  8. Filename string `json:"filename" gorm:"comment:文件名"`
  9. TotalChunks string `json:"totalChunks" gorm:"comment:切片总数"`
  10. IsDone bool `json:"isDone" gorm:"comment:是否上传完成"`
  11. FilePath string `json:"filePath" gorm:"comment:文件本地路径"`
  12. }