feat(storage): 实现本地存储功能,包括文件上传和下载接口
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
package services
|
||||
|
||||
import (
|
||||
"quyun/v2/providers/job"
|
||||
"quyun/v2/providers/storage"
|
||||
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
@@ -12,8 +15,10 @@ var (
|
||||
Common *common
|
||||
Content *content
|
||||
Creator *creator
|
||||
Job *job.Job
|
||||
Notification *notification
|
||||
Order *order
|
||||
Storage *storage.Storage
|
||||
Super *super
|
||||
Tenant *tenant
|
||||
User *user
|
||||
@@ -28,8 +33,10 @@ type services struct {
|
||||
common *common
|
||||
content *content
|
||||
creator *creator
|
||||
job *job.Job
|
||||
notification *notification
|
||||
order *order
|
||||
storage *storage.Storage
|
||||
super *super
|
||||
tenant *tenant
|
||||
user *user
|
||||
@@ -44,8 +51,10 @@ func (svc *services) Prepare() error {
|
||||
Common = svc.common
|
||||
Content = svc.content
|
||||
Creator = svc.creator
|
||||
Job = svc.job
|
||||
Notification = svc.notification
|
||||
Order = svc.order
|
||||
Storage = svc.storage
|
||||
Super = svc.super
|
||||
Tenant = svc.tenant
|
||||
User = svc.user
|
||||
|
||||
Reference in New Issue
Block a user