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.

24 lines
387 B

  1. package model
  2. import (
  3. "gorm.io/gorm"
  4. )
  5. // file struct, 文件结构体
  6. type ExaFile struct {
  7. gorm.Model
  8. FileName string
  9. FileMd5 string
  10. FilePath string
  11. ExaFileChunk []ExaFileChunk
  12. ChunkTotal int
  13. IsFinish bool
  14. }
  15. // file chunk struct, 切片结构体
  16. type ExaFileChunk struct {
  17. gorm.Model
  18. ExaFileId uint
  19. FileChunkNumber int
  20. FileChunkPath string
  21. }