teldrive/schemas/upload.schema.go

21 lines
473 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"`
}
type UploadOut struct {
Parts []UploadPartOut `json:"parts"`
}