feat: 重构主题相关逻辑,移动 ThemeResponse 到 color.py,更新相关引用,优化目录路径处理

This commit is contained in:
2025-12-19 15:35:34 +08:00
parent 20753f1725
commit e031f3cc40
6 changed files with 60 additions and 55 deletions

View File

@@ -1,6 +1,6 @@
from .setting import Setting, SettingsType
from .user import ThemeResponse
from .color import ThemeResponse
from pkg.conf.appmeta import BackendVersion
from pkg.password.pwd import Password
from loguru import logger as log
@@ -225,7 +225,7 @@ async def init_default_user() -> None:
# 为管理员创建根目录(使用默认存储策略)
await Object(
name="~",
name="my",
type=ObjectType.FOLDER,
owner_id=admin_user.id,
parent_id=None,