This commit is contained in:
jxxghp
2025-05-02 08:31:38 +08:00
parent 91d0f76783
commit 85b55aa924
3 changed files with 6 additions and 17 deletions
-9
View File
@@ -7,7 +7,6 @@ from app.core.config import settings
from app.helper.directory import DirectoryHelper
from app.log import logger
from app.schemas import MediaType
from helper.storage import StorageHelper
class StorageChain(ChainBase):
@@ -18,7 +17,6 @@ class StorageChain(ChainBase):
def __init__(self):
super().__init__()
self.directoryhelper = DirectoryHelper()
self.storagehelper = StorageHelper()
def save_config(self, storage: str, conf: dict) -> None:
"""
@@ -183,10 +181,3 @@ class StorageChain(ChainBase):
return self.delete_file(dir_item)
return True
def get_storage(self, storage: str) -> Optional[schemas.StorageConf]:
"""
获取存储对象
"""
return self.storagehelper.get_storage(storage=storage)