收敛 Pages 部署包读取路径

This commit is contained in:
ryan
2026-06-21 12:04:54 +08:00
parent 13a375e042
commit 6ed3c0c81f
10 changed files with 274 additions and 159 deletions
+26
View File
@@ -0,0 +1,26 @@
// Copyright 2026 Arctel.net
// SPDX-License-Identifier: Apache-2.0
package ingest
import (
"io"
"github.com/Rain-kl/Wavelet/internal/model"
)
// OpenedObject is the upload-domain view of a stored object stream.
type OpenedObject struct {
Body io.ReadCloser
ContentType string
ContentLength int64
Upload model.Upload
}
// Close closes the object body when present.
func (o OpenedObject) Close() error {
if o.Body == nil {
return nil
}
return o.Body.Close()
}