mirror of
https://github.com/tgdrive/teldrive.git
synced 2024-09-20 08:15:55 +08:00
retrun size
This commit is contained in:
parent
2fb8e8ca9a
commit
3eb08f42dd
|
@ -13,6 +13,7 @@ type UploadPartOut struct {
|
|||
PartNo int `json:"partNo"`
|
||||
TotalParts int `json:"totalParts"`
|
||||
ChannelID int64 `json:"channelId"`
|
||||
Size int64 `json:"size"`
|
||||
}
|
||||
|
||||
type UploadOut struct {
|
||||
|
|
|
@ -145,6 +145,7 @@ func (us *UploadService) UploadFile(c *gin.Context) (*schemas.UploadPartOut, *ty
|
|||
ChannelID: partUpload.ChannelID,
|
||||
PartNo: partUpload.PartNo,
|
||||
TotalParts: partUpload.TotalParts,
|
||||
Size: partUpload.Size,
|
||||
}
|
||||
|
||||
return out, nil
|
||||
|
|
Loading…
Reference in a new issue