mirror of
https://github.com/tgdrive/teldrive.git
synced 2025-01-05 06:43:12 +08:00
38 lines
1,002 B
Go
38 lines
1,002 B
Go
package schemas
|
|
|
|
type UploadQuery struct {
|
|
PartName string `form:"partName" binding:"required"`
|
|
FileName string `form:"fileName" binding:"required"`
|
|
PartNo int `form:"partNo" binding:"required"`
|
|
ChannelID int64 `form:"channelId"`
|
|
Encrypted bool `form:"encrypted"`
|
|
}
|
|
|
|
type UploadPartOut struct {
|
|
Name string `json:"name"`
|
|
PartId int `json:"partId"`
|
|
PartNo int `json:"partNo"`
|
|
ChannelID int64 `json:"channelId"`
|
|
Size int64 `json:"size"`
|
|
Encrypted bool `json:"encrypted"`
|
|
Salt string `json:"salt"`
|
|
}
|
|
|
|
type UploadOut struct {
|
|
Parts []UploadPartOut `json:"parts"`
|
|
}
|
|
|
|
type UploadPart struct {
|
|
Name string `json:"name"`
|
|
UploadId string `json:"uploadId"`
|
|
PartId int `json:"partId"`
|
|
PartNo int `json:"partNo"`
|
|
ChannelID int64 `json:"channelId"`
|
|
Size int64 `json:"size"`
|
|
Encrypted bool `json:"encrypted"`
|
|
}
|
|
|
|
type UploadStats struct {
|
|
UploadDate string `json:"uploadDate"`
|
|
TotalUploaded int64 `json:"totalUploaded"`
|
|
}
|