From dd20bf2e7888472d193b5fe3d156c13bec53967d Mon Sep 17 00:00:00 2001 From: yuliang_guo Date: Thu, 29 Jan 2026 17:09:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=90=88=E5=B9=B6=20get=5Fdb=20?= =?UTF-8?q?=E5=92=8C=20get=5Fcurrent=5Fuser=20=E7=9A=84=E5=AF=BC=E5=85=A5?= =?UTF-8?q?=E5=88=B0=20deps?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/api/v1/endpoints/certificate.py | 3 +-- backend/app/api/v1/endpoints/dashboard.py | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/backend/app/api/v1/endpoints/certificate.py b/backend/app/api/v1/endpoints/certificate.py index eb8ab9a..df8b1da 100644 --- a/backend/app/api/v1/endpoints/certificate.py +++ b/backend/app/api/v1/endpoints/certificate.py @@ -14,8 +14,7 @@ from fastapi.responses import StreamingResponse from sqlalchemy.ext.asyncio import AsyncSession import io -from app.core.deps import get_db -from app.core.security import get_current_user +from app.core.deps import get_db, get_current_user from app.models.user import User from app.services.certificate_service import CertificateService diff --git a/backend/app/api/v1/endpoints/dashboard.py b/backend/app/api/v1/endpoints/dashboard.py index eab3f51..489b594 100644 --- a/backend/app/api/v1/endpoints/dashboard.py +++ b/backend/app/api/v1/endpoints/dashboard.py @@ -8,8 +8,7 @@ from typing import Optional from fastapi import APIRouter, Depends, HTTPException, status, Query from sqlalchemy.ext.asyncio import AsyncSession -from app.core.deps import get_db -from app.core.security import get_current_user +from app.core.deps import get_db, get_current_user from app.models.user import User from app.services.dashboard_service import DashboardService