mirror of
https://github.com/tgdrive/teldrive.git
synced 2024-11-15 04:05:35 +08:00
28 lines
704 B
Go
28 lines
704 B
Go
package schemas
|
|
|
|
type UploadQuery struct {
|
|
Filename string `form:"fileName" binding:"required`
|
|
PartNo int `form:"partNo" binding:"required`
|
|
ChannelID int64 `form:"channelId" binding:"required`
|
|
}
|
|
|
|
type UploadPartOut struct {
|
|
Name string `json:"name"`
|
|
PartId int `json:"partId"`
|
|
PartNo int `json:"partNo"`
|
|
ChannelID int64 `json:"channelId"`
|
|
Size int64 `json:"size"`
|
|
}
|
|
|
|
type UploadOut struct {
|
|
Parts []UploadPartOut `json:"parts"`
|
|
}
|
|
|
|
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"`
|
|
}
|