teldrive/schemas/upload.schema.go

22 lines
506 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"`
}
type UploadPartOut struct {
ID string `json:"id"`
Name string `json:"name"`
PartId int `json:"partId"`
PartNo int `json:"partNo"`
TotalParts int `json:"totalParts"`
ChannelID int64 `json:"channelId"`
2023-08-18 15:24:19 +08:00
Size int64 `json:"size"`
2023-08-13 04:15:19 +08:00
}
type UploadOut struct {
Parts []UploadPartOut `json:"parts"`
}