chore: initial commit — leaudit-platform project skeleton
17-table PostgreSQL schema with full Chinese column comments, FastAPI project structure (admin/common/modules), DSL rule files, and schema migration scripts.
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
"""控制器包(需要 JWT 鉴权)。"""
|
||||
|
||||
from typing import Any
|
||||
|
||||
from fastapi import APIRouter, Depends, Request
|
||||
|
||||
from fastapi_common.fastapi_common_security.security import verify_access_token
|
||||
|
||||
|
||||
async def jwt_auth_dependency(RequestObj: Request) -> dict[str, Any]:
|
||||
"""JWT 鉴权依赖。"""
|
||||
return verify_access_token(RequestObj)
|
||||
|
||||
|
||||
router = APIRouter(dependencies=[Depends(jwt_auth_dependency)])
|
||||
Reference in New Issue
Block a user