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
+14
View File
@@ -0,0 +1,14 @@
"""API 鉴权依赖向端点暴露的最小当前用户契约。"""
from typing import Protocol
class ApiPrincipal(Protocol):
"""隔离端点身份判断与 ORM User 实现。"""
id: int
name: str
is_superuser: bool
__all__ = ["ApiPrincipal"]