feat(storage): 实现本地存储功能,包括文件上传和下载接口

This commit is contained in:
2025-12-30 17:14:03 +08:00
parent 452cdc3f4f
commit b969218208
10 changed files with 291 additions and 27 deletions

View File

@@ -0,0 +1,8 @@
package storage
type Config struct {
Type string `json:"type" yaml:"type" toml:"type"` // local, s3
LocalPath string `json:"local_path" yaml:"local_path" toml:"local_path"` // for local
Secret string `json:"secret" yaml:"secret" toml:"secret"` // for signing
BaseURL string `json:"base_url" yaml:"base_url" toml:"base_url"` // public url prefix
}