teldrive/schemas/upload.schema.go
2023-08-13 01:45:19 +05:30

20 lines
473 B
Go

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"`
}