liujiandao
2023-09-23 bcbd47ebfa5cdb0762c2a33601dc68dd8dd564ec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package example
 
import (
    "srm/global"
)
 
// file struct, 文件结构体
type ExaFile struct {
    global.GVA_MODEL
    FileName     string
    FileMd5      string
    FilePath     string
    ExaFileChunk []ExaFileChunk
    ChunkTotal   int
    IsFinish     bool
}
 
// file chunk struct, 切片结构体
type ExaFileChunk struct {
    global.GVA_MODEL
    ExaFileID       uint
    FileChunkNumber int
    FileChunkPath   string
}