22 lines
486 B
Go
22 lines
486 B
Go
package medias
|
|
|
|
type UploadReq struct {
|
|
FileName string `form:"file_name"`
|
|
ChunkNumber int `form:"chunk_number"`
|
|
TotalChunks int `form:"total_chunks"`
|
|
FileMD5 string `form:"file_md5"`
|
|
}
|
|
|
|
type UploadResp struct {
|
|
Files []UploadFile `json:"files"`
|
|
}
|
|
|
|
type UploadFile struct {
|
|
HashID string `json:"hash_id"`
|
|
Name string `json:"name"`
|
|
Size int64 `json:"size"`
|
|
MimeType string `json:"type"`
|
|
Path string `json:"path"`
|
|
Preview string `json:"preview"`
|
|
}
|