This commit is contained in:
root
2025-07-12 17:31:46 +08:00
parent 1afe9026d6
commit 0000732e3b
11 changed files with 1318 additions and 83 deletions

View File

@@ -14,41 +14,9 @@ from datetime import datetime
from ..utils.logger import setup_logger
from ..config import settings
from python_core.database.types import TemplateInfo, MaterialInfo
logger = setup_logger(__name__)
@dataclass
class TemplateInfo:
"""Template information structure"""
id: str
name: str
description: str
thumbnail_path: str
draft_content_path: str
resources_path: str
created_at: str
updated_at: str
canvas_config: Dict[str, Any]
duration: int
material_count: int
track_count: int
tags: List[str]
@dataclass
class MaterialInfo:
"""Material information structure"""
id: str
material_id: str
name: str
type: str # video, audio, image, text, sticker, etc.
original_path: str
relative_path: str
duration: Optional[int] = None
size: Optional[int] = None
class TemplateManager:
"""Template management service"""