Files
YaoXiang/backend/app/storage/base.py
T
2026-06-15 14:50:15 +08:00

15 lines
332 B
Python

from abc import ABC, abstractmethod
class StorageProvider(ABC):
@abstractmethod
async def save(self, file_path: str, data: bytes) -> str:
pass
@abstractmethod
async def delete(self, file_path: str) -> bool:
pass
@abstractmethod
async def get_url(self, file_path: str) -> str:
pass