mirror of
https://github.com/fastapi-practices/fastapi_best_architecture.git
synced 2025-08-18 15:00:46 +08:00
update DependsSession to CurrentSession
This commit is contained in:
@ -45,7 +45,7 @@ async def get_db() -> AsyncSession:
|
||||
|
||||
|
||||
# Session 依赖注入
|
||||
DependsSession = Annotated[AsyncSession, Depends(get_db)]
|
||||
CurrentSession = Annotated[AsyncSession, Depends(get_db)]
|
||||
|
||||
|
||||
async def create_table():
|
||||
|
Reference in New Issue
Block a user