feat(storage): 实现本地存储功能,包括文件上传和下载接口
This commit is contained in:
@@ -3,6 +3,7 @@ package services
|
||||
import (
|
||||
"quyun/v2/providers/job"
|
||||
"quyun/v2/providers/jwt"
|
||||
"quyun/v2/providers/storage"
|
||||
|
||||
"go.ipao.vip/atom"
|
||||
"go.ipao.vip/atom/container"
|
||||
@@ -19,8 +20,12 @@ func Provide(opts ...opt.Option) error {
|
||||
}); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := container.Container.Provide(func() (*common, error) {
|
||||
obj := &common{}
|
||||
if err := container.Container.Provide(func(
|
||||
storage *storage.Storage,
|
||||
) (*common, error) {
|
||||
obj := &common{
|
||||
storage: storage,
|
||||
}
|
||||
|
||||
return obj, nil
|
||||
}); err != nil {
|
||||
@@ -64,8 +69,10 @@ func Provide(opts ...opt.Option) error {
|
||||
content *content,
|
||||
creator *creator,
|
||||
db *gorm.DB,
|
||||
job *job.Job,
|
||||
notification *notification,
|
||||
order *order,
|
||||
storage *storage.Storage,
|
||||
super *super,
|
||||
tenant *tenant,
|
||||
user *user,
|
||||
@@ -77,8 +84,10 @@ func Provide(opts ...opt.Option) error {
|
||||
content: content,
|
||||
creator: creator,
|
||||
db: db,
|
||||
job: job,
|
||||
notification: notification,
|
||||
order: order,
|
||||
storage: storage,
|
||||
super: super,
|
||||
tenant: tenant,
|
||||
user: user,
|
||||
|
||||
Reference in New Issue
Block a user