From 97d41587baba5fdec09114c6e6fd63515138432d Mon Sep 17 00:00:00 2001 From: root Date: Sat, 12 Jul 2025 18:04:15 +0800 Subject: [PATCH] fix --- python_core/database/types.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/python_core/database/types.py b/python_core/database/types.py index 1c140ed..d27d789 100644 --- a/python_core/database/types.py +++ b/python_core/database/types.py @@ -11,12 +11,11 @@ class ResourceCategory: color: str # 展示颜色 (hex格式,如 #FF5733) created_at: str updated_at: str - is_active: bool = True - # is_cloud false 代表本地资源 那么只加载自己的 如果是 true 就是公用的 - is_cloud: bool + is_cloud: bool = False # 创建用户 - user_id: str + user_id: str = "" + is_active: bool = True @dataclass @@ -32,9 +31,9 @@ class MaterialInfo: size: Optional[int] = None # is_cloud false 代表本地资源 那么只加载自己的 如果是 true 就是公用的 - is_cloud: bool + is_cloud: bool = False # 创建用户 - user_id: str + user_id: str = "" @dataclass class TemplateInfo: @@ -52,6 +51,6 @@ class TemplateInfo: track_count: int tags: List[str] # is_cloud false 代表本地资源 那么只加载自己的 如果是 true 就是公用的 - is_cloud: bool + is_cloud: bool = False # 创建用户 - user_id: str \ No newline at end of file + user_id: str = "" \ No newline at end of file