refactor(backend): 后端重构初步设想

This commit is contained in:
sophie committed 2026-06-17 11:24:54 +08:00
1 parent b69d549b2c
commit 21b8c24815
96 files changed
+1592

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
"""
backend/app/services/user/__init__.py
用途:用户域业务服务(profile、homepage、admin 级联删除)。
逻辑:Wave 3 从 api/user/_legacy 与 user_admin.py 抽取。
"""
@@ -0,0 +1,9 @@
"""
backend/app/services/user/admin_service.py
用途:用户管理侧业务(删除级联、权限批量变更等)。
逻辑:Wave 3 收敛 app/services/user_admin.py。
"""
from app.services import user_admin # noqa: F401 — Wave 3: 实现迁入本模块
__all__ = ['user_admin']
+5
View File
@@ -0,0 +1,5 @@
"""
backend/app/services/user/faq_service.py
用途:常见问题(FAQ)业务逻辑。
"""
@@ -0,0 +1,5 @@
"""
backend/app/services/user/homepage_service.py
用途:首页布局、收藏 Agent、默认 Agent 业务逻辑。
"""
@@ -0,0 +1,5 @@
"""
backend/app/services/user/profile_service.py
用途:用户资料、密码修改等业务逻辑。
"""