refactor: 收口 V3 分层架构与插件兼容边界

This commit is contained in:
jxxghp
2026-08-18 13:22:02 +08:00
parent cca99bd421
commit 8472bcff43
274 changed files with 10730 additions and 6130 deletions
+5 -3
View File
@@ -6,7 +6,8 @@ Create Date: 2025-02-14 19:02:24.989349
"""
from app.chain.torrents import TorrentsChain
from app.adapters.cache.backends import configure_platform_cache
from app.application.torrent import clear_torrent_cache
# revision identifiers, used by Alembic.
revision = '279a949d81b6'
@@ -16,8 +17,9 @@ depends_on = None
def upgrade() -> None:
# 清理一次缓存
TorrentsChain().clear_torrents()
# 迁移执行时生命周期尚未装配,直接通过缓存端口清理一次缓存
configure_platform_cache()
clear_torrent_cache()
def downgrade() -> None:
+1 -1
View File
@@ -9,7 +9,7 @@ Create Date: 2024-07-20 08:43:40.741251
import secrets
from app.runtime.config import settings
from app.application.security.access import get_password_hash
from app.application.security.token import get_password_hash
from app.db import SessionFactory
from app.db.models import *
from app.db.oper.systemconfig import SystemConfigOper