rewrited logic structure
This commit is contained in:
23
group_system/storage/store.py
Normal file
23
group_system/storage/store.py
Normal 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 层只依赖这个门面。"""
|
||||
Reference in New Issue
Block a user