PMFlow/backend/app/dependencies/__init__.py

44 lines
1.0 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"""
FastAPI 依赖注入
- 鉴权(JWT、当前用户、角色检查)
- 租户过滤(预留)
- 分页(预留)
"""
from .auth import (
oauth2_scheme,
get_current_user,
get_optional_current_user,
get_current_active_user,
require_roles,
)
from .permissions import (
require_platform_admin_access,
require_platform_ai_ops,
require_platform_capability,
require_platform_route_governance,
require_platform_semantic_facts,
require_manager_user,
require_project_member_or_manager,
require_self_or_manager,
)
from .tenant import get_tenant_id
__all__ = [
"oauth2_scheme",
"get_current_user",
"get_optional_current_user",
"get_current_active_user",
"require_roles",
"require_platform_admin_access",
"require_platform_ai_ops",
"require_platform_capability",
"require_platform_route_governance",
"require_platform_semantic_facts",
"require_manager_user",
"require_project_member_or_manager",
"require_self_or_manager",
"get_tenant_id",
]