You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
746 B

3 years ago
  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. }