mirror of
https://github.com/tgdrive/teldrive.git
synced 2024-11-15 12:18:07 +08:00
30 lines
732 B
Go
30 lines
732 B
Go
package schemas
|
|
|
|
type UploadQuery struct {
|
|
Filename string `form:"fileName"`
|
|
PartNo int `form:"partNo,omitempty"`
|
|
TotalParts int `form:"totalparts"`
|
|
ChannelID int64 `form:"channelId"`
|
|
}
|
|
|
|
type UploadPartOut struct {
|
|
ID string `json:"id"`
|
|
Name string `json:"name"`
|
|
PartId int `json:"partId"`
|
|
PartNo int `json:"partNo"`
|
|
ChannelID int64 `json:"channelId"`
|
|
Size int64 `json:"size"`
|
|
}
|
|
|
|
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"`
|
|
}
|