teldrive/pkg/schemas/upload.go

30 lines
744 B
Go
Raw Normal View History

2023-08-13 04:15:19 +08:00
package schemas
type UploadQuery struct {
2023-12-08 05:46:06 +08:00
Filename string `form:"fileName" binding:"required"`
PartNo int `form:"partNo" binding:"required"`
ChannelID int64 `form:"channelId" binding:"required"`
Encrypted bool `form:"encrypted"`
2023-08-13 04:15:19 +08:00
}
type UploadPartOut struct {
2023-11-07 17:06:14 +08:00
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"`
}