mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 07:27:15 +08:00
refactor: 收口 V3 分层架构与插件兼容边界
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
"""API 鉴权依赖向端点暴露的最小当前用户契约。"""
|
||||
|
||||
from typing import Protocol
|
||||
|
||||
|
||||
class ApiPrincipal(Protocol):
|
||||
"""隔离端点身份判断与 ORM User 实现。"""
|
||||
|
||||
id: int
|
||||
name: str
|
||||
is_superuser: bool
|
||||
|
||||
|
||||
__all__ = ["ApiPrincipal"]
|
||||
Reference in New Issue
Block a user