- Backend: FastAPI app with all models, services, schemas, routes - Admin Panel: Next.js dashboard with all modules (CRM, POS, repairs, warranties, billing, notifications, etc.) - Ecommerce: storefront (submodule) + product catalog - AI Agents: .agents/ skill library for Antigravity IDE - Docs: architecture, billing, notification gateway markdown - Submodules: Backend/OpenWA, Ecommerce/File 2/storefront
16 lines
441 B
Python
16 lines
441 B
Python
from abc import ABC, abstractmethod
|
|
|
|
class StorageProvider(ABC):
|
|
@abstractmethod
|
|
def save_file(self, file_bytes: bytes, filename: str, folder: str) -> str:
|
|
"""
|
|
Saves file bytes and returns the stored path or URI.
|
|
"""
|
|
pass
|
|
|
|
@abstractmethod
|
|
def delete_file(self, storage_path: str) -> bool:
|
|
"""
|
|
Deletes the file from storage. Returns True if successful.
|
|
"""
|
|
pass
|