17 lines
753 B
Python
17 lines
753 B
Python
# app/dto/response/health_response.py
|
|
"""
|
|
HealthSync AI 건강 분석 응답 DTO
|
|
"""
|
|
from pydantic import BaseModel, Field
|
|
|
|
|
|
class HealthDiagnosisResponse(BaseModel):
|
|
"""건강 진단 응답 DTO"""
|
|
threeSentenceSummary: str = Field(..., description="3줄 요약 진단")
|
|
|
|
class Config:
|
|
json_schema_extra = {
|
|
"example": {
|
|
"threeSentenceSummary": "혈압과 콜레스테롤 수치가 정상 범위를 약간 초과하여 심혈관 질환 위험이 있습니다. IT 개발자 직업 특성상 장시간 앉아있어 운동 부족과 스트레스가 주요 원인으로 보입니다. 규칙적인 유산소 운동과 식단 조절을 통해 충분히 개선 가능한 상태입니다."
|
|
}
|
|
} |