chore: 初始化提交
This commit is contained in:
commit
943c0a0e5a
71 files changed
+7122
No files matched your search
@@ -0,0 +1,14 @@
|
||||
package storage
|
||||
|
||||
import (
|
||||
"context"
|
||||
"io"
|
||||
)
|
||||
|
||||
// Storage 媒体存储抽象。本地磁盘与 S3-compatible 实现同一接口,通过配置切换。
|
||||
// 媒体一律走存储层,画布节点只引用返回的 URL。
|
||||
type Storage interface {
|
||||
// Save 写入文件并返回可对外访问的 URL。
|
||||
Save(ctx context.Context, key string, r io.Reader) (string, error)
|
||||
Delete(ctx context.Context, key string) error
|
||||
}
|
||||
Reference in new issue
Block a user