fix: upload image issues
This commit is contained in:
@@ -1,8 +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
|
||||
Type string // local, s3
|
||||
LocalPath string // for local
|
||||
Secret string // for signing
|
||||
BaseURL string // public url prefix
|
||||
}
|
||||
|
||||
@@ -13,10 +13,14 @@ import (
|
||||
"go.ipao.vip/atom/opt"
|
||||
)
|
||||
|
||||
const DefaultPrefix = "Storage"
|
||||
|
||||
func DefaultProvider() container.ProviderContainer {
|
||||
return container.ProviderContainer{
|
||||
Provider: Provide,
|
||||
Options: []opt.Option{},
|
||||
Options: []opt.Option{
|
||||
opt.Prefix(DefaultPrefix),
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user