优化
This commit is contained in:
+4
-3
@@ -1,19 +1,20 @@
|
||||
import time
|
||||
from typing import Annotated
|
||||
|
||||
from redis import Redis
|
||||
from sqlalchemy.orm import Session
|
||||
from redis.asyncio import Redis as AsyncRedis
|
||||
from fastapi import Depends, Header
|
||||
|
||||
from api.core.exception import ResponseException
|
||||
from core.character.adventure import get_adv_info
|
||||
from database.connect import get_db, get_redis
|
||||
from database.connect import get_async_redis, get_redis
|
||||
from api.core.Auth import AlterState
|
||||
import base64
|
||||
import json
|
||||
from api.core.Redis import get_redis_info
|
||||
|
||||
SessionDep = Annotated[Session, Depends(get_db)]
|
||||
RedisDep = Annotated[Redis, Depends(get_redis)]
|
||||
AsyncRedisDep = Annotated[AsyncRedis, Depends(get_async_redis)]
|
||||
|
||||
|
||||
def alterToken(redis: RedisDep, alter_token: str | None = Header(None)):
|
||||
|
||||
Reference in New Issue
Block a user