fix
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user