模块化变更

This commit is contained in:
pixel
2021-07-16 20:08:11 +08:00
parent 73a8052c08
commit b5c1babec9
121 changed files with 643 additions and 574 deletions

View File

@@ -0,0 +1,24 @@
package example
import (
"gin-vue-admin/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
}