teldrive/pkg/schemas/upload.go

31 lines
732 B
Go
Raw Normal View History

2023-08-13 04:15:19 +08:00
package schemas
type UploadQuery struct {
Filename string `form:"fileName"`
PartNo int `form:"partNo,omitempty"`
TotalParts int `form:"totalparts"`
ChannelID int64 `form:"channelId"`
2023-08-13 04:15:19 +08:00
}
type UploadPartOut struct {
2023-11-07 17:06:14 +08:00
ID string `json:"id"`
Name string `json:"name"`
PartId int `json:"partId"`
PartNo int `json:"partNo"`
ChannelID int64 `json:"channelId"`
Size int64 `json:"size"`
2023-08-13 04:15:19 +08:00
}
type UploadOut struct {
Parts []UploadPartOut `json:"parts"`
}
2023-11-07 17:06:14 +08:00
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"`
}