feat(storage): 实现本地存储功能,包括文件上传和下载接口
This commit is contained in:
@@ -2,6 +2,7 @@ package jobs
|
||||
|
||||
import (
|
||||
"quyun/v2/providers/job"
|
||||
"quyun/v2/providers/storage"
|
||||
|
||||
"github.com/riverqueue/river"
|
||||
"go.ipao.vip/atom"
|
||||
@@ -13,8 +14,11 @@ import (
|
||||
func Provide(opts ...opt.Option) error {
|
||||
if err := container.Container.Provide(func(
|
||||
__job *job.Job,
|
||||
storage *storage.Storage,
|
||||
) (contracts.Initial, error) {
|
||||
obj := &MediaProcessWorker{}
|
||||
obj := &MediaProcessWorker{
|
||||
storage: storage,
|
||||
}
|
||||
if err := river.AddWorkerSafely(__job.Workers, obj); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user