WIP storage

This commit is contained in:
2025-11-03 09:34:41 +08:00
parent 1aa8ddfe38
commit 90bb6d50db
8 changed files with 82 additions and 19 deletions

View File

@@ -0,0 +1,12 @@
from abc import ABC, abstractmethod
from ..config import StorageItem
class Storage(ABC):
@classmethod
def get_storage_type(cls) -> str:
return cls.__name__ + "Item"
@classmethod
@abstractmethod
def from_config(cls, cfg: StorageItem) -> 'Storage':
...