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

@@ -1,5 +1,18 @@
from dataclasses import dataclass
from typing import Dict, List, Any
from typing import Dict, List, Any, Optional
@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
@dataclass
class TemplateInfo:
@@ -16,7 +29,7 @@ class TemplateInfo:
material_count: int
track_count: int
tags: List[str]
# local/cloud
# local/cloud 如果类型是 local 那么只加载自己的 如果是 cloud 就是公用的
type: str
# 创建用户
user_id: str