feat(storage): 添加默认存储提供者以支持存储功能
This commit is contained in:
@@ -18,6 +18,7 @@ import (
|
||||
"quyun/v2/providers/job"
|
||||
"quyun/v2/providers/jwt"
|
||||
"quyun/v2/providers/postgres"
|
||||
"quyun/v2/providers/storage"
|
||||
|
||||
"go.ipao.vip/atom"
|
||||
"go.ipao.vip/atom/container"
|
||||
@@ -36,6 +37,7 @@ func defaultProviders() container.Providers {
|
||||
jwt.DefaultProvider(),
|
||||
job.DefaultProvider(),
|
||||
database.DefaultProvider(),
|
||||
storage.DefaultProvider(),
|
||||
}...)
|
||||
}
|
||||
|
||||
|
||||
@@ -13,6 +13,13 @@ import (
|
||||
"go.ipao.vip/atom/opt"
|
||||
)
|
||||
|
||||
func DefaultProvider() container.ProviderContainer {
|
||||
return container.ProviderContainer{
|
||||
Provider: Provide,
|
||||
Options: []opt.Option{},
|
||||
}
|
||||
}
|
||||
|
||||
func Provide(opts ...opt.Option) error {
|
||||
o := opt.New(opts...)
|
||||
var config Config
|
||||
|
||||
Reference in New Issue
Block a user