This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
"""
|
||||
HealthSync AI 공통 의존성 관리
|
||||
"""
|
||||
from fastapi import Depends, HTTPException, status, Query
|
||||
from app.config.settings import settings, Settings
|
||||
import logging
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
def get_settings() -> Settings:
|
||||
"""설정 의존성 주입"""
|
||||
return settings
|
||||
|
||||
def get_current_user_id(user_id: int = Query(..., gt=0, description="사용자 ID")) -> int:
|
||||
"""현재 사용자 ID 추출"""
|
||||
return user_id
|
||||
Reference in New Issue
Block a user