rewrited logic structure

This commit is contained in:
2026-09-09 16:43:57 +08:00
parent 1947a27514
commit ac6d2cf3b4
20 changed files with 1717 additions and 1496 deletions

View File

@@ -0,0 +1,23 @@
"""GroupStore 组合各个存储模块,作为兼容旧代码的门面。"""
from __future__ import annotations
from pathlib import Path
from group_system.storage.accounts import AccountStoreMixin
from group_system.storage.admin import TeacherGroupAdminMixin
from group_system.storage.database import DatabaseCore
from group_system.storage.export import ExportStoreMixin
from group_system.storage.groups import GroupOperationsMixin
from group_system.storage.roster import RosterStoreMixin
class GroupStore(
DatabaseCore,
RosterStoreMixin,
AccountStoreMixin,
GroupOperationsMixin,
TeacherGroupAdminMixin,
ExportStoreMixin,
):
"""封装所有 SQLite 持久化操作。HTTP 层只依赖这个门面。"""