2023-08-13 04:15:19 +08:00
|
|
|
package schemas
|
|
|
|
|
|
|
|
type UploadQuery struct {
|
2023-12-17 21:05:36 +08:00
|
|
|
PartName string `form:"partName" binding:"required"`
|
|
|
|
FileName string `form:"fileName" binding:"required"`
|
2023-12-08 05:46:06 +08:00
|
|
|
PartNo int `form:"partNo" binding:"required"`
|
2023-12-08 06:23:55 +08:00
|
|
|
ChannelID int64 `form:"channelId"`
|
2023-12-08 05:46:06 +08:00
|
|
|
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-12-08 06:05:40 +08:00
|
|
|
Encrypted bool `json:"encrypted"`
|
2023-12-08 15:46:05 +08:00
|
|
|
Salt string `json:"salt"`
|
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"`
|
2023-12-08 06:05:40 +08:00
|
|
|
Encrypted bool `json:"encrypted"`
|
2023-11-07 17:06:14 +08:00
|
|
|
}
|