package entity // FileMeta contains metadata about a file stored in the object storage. // FileMeta 包含存储在对象存储中的文件元数据。 // // Fields: // - Key: The unique key/path of the file in the storage. // - Size: The size of the file in bytes. // // 字段: // - Key: 文件在存储中的唯一键/路径。 // - Size: 文件大小(字节)。 type FileMeta struct { Key string `json:"key"` Size int64 `json:"size"` } // UploadRequest contains the necessary information to upload a file. // UploadRequest 包含上传文件所需的必要信息。 // // Fields: // - Filename: The original filename. // - Content: The file content as bytes. // - ContentType: The MIME type of the file. // // 字段: // - Filename: 原始文件名。 // - Content: 文件内容(字节)。 // - ContentType: 文件的 MIME 类型。 type UploadRequest struct { Filename string Content []byte ContentType string }