mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-08-29 03:56:43 +08:00
15 lines
265 B
Python
15 lines
265 B
Python
"""API 鉴权依赖向端点暴露的最小当前用户契约。"""
|
|
|
|
from typing import Protocol
|
|
|
|
|
|
class ApiPrincipal(Protocol):
|
|
"""隔离端点身份判断与 ORM User 实现。"""
|
|
|
|
id: int
|
|
name: str
|
|
is_superuser: bool
|
|
|
|
|
|
__all__ = ["ApiPrincipal"]
|