feat(media-supply): integrate object storage for media supply service and enhance image upload handling
Backend CI / Backend (push) Successful in 16m49s

This commit is contained in:
2026-06-03 22:11:22 +08:00
parent d098633a67
commit ae455ea21c
10 changed files with 765 additions and 52 deletions
@@ -19,7 +19,7 @@ type MediaSupplyHandler struct {
func NewMediaSupplyHandler(a *bootstrap.App) *MediaSupplyHandler {
svc := a.MediaSupplyService
if svc == nil {
svc = app.NewMediaSupplyService(a.DB, a.Redis, a.Logger, a.ConfigStore)
svc = app.NewMediaSupplyService(a.DB, a.Redis, a.Logger, a.ConfigStore).WithObjectStorage(a.ObjectStorage)
}
return &MediaSupplyHandler{
svc: svc,