filelu: add multipart init response type

This commit is contained in:
kingston125
2026-02-05 13:09:16 +00:00
committed by Nick Craig-Wood
parent 1049f88a1d
commit 37f6336636
+13
View File
@@ -3,6 +3,19 @@ package api
import "encoding/json"
// MultipartInitResponse represents the response from multipart/init.
type MultipartInitResponse struct {
Status int `json:"status"`
Msg string `json:"msg"`
Result struct {
UploadID string `json:"upload_id"`
SessID string `json:"sess_id"`
Server string `json:"server"`
FolderID int64 `json:"folder_id"`
ObjectPath string `json:"object_path"`
} `json:"result"`
}
// CreateFolderResponse represents the response for creating a folder.
type CreateFolderResponse struct {
Status int `json:"status"`