feat(storage): 实现本地存储功能,包括文件上传和下载接口

This commit is contained in:
2025-12-30 17:14:03 +08:00
parent 452cdc3f4f
commit b969218208
10 changed files with 291 additions and 27 deletions

View File

@@ -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