유니티 상에서 플레이어가 사망 시 fastapi로 전달하여 db에 데이터 추가
This commit is contained in:
@@ -8,6 +8,9 @@ class AncestorDeathCreate(BaseModel):
|
||||
cause_of_death: str = Field(..., description="사망 원인 (예: 가시 함정, 화염 슬라임 등)")
|
||||
floor: int = Field(..., description="사망한 던전 층수")
|
||||
|
||||
class DeathRecordRequest(BaseModel):
|
||||
cause_of_death: str = Field(..., description="사망 원인 (누구에게 죽었는지)")
|
||||
|
||||
class AncestorDeathResponse(BaseModel):
|
||||
id: int
|
||||
name: str
|
||||
|
||||
Reference in New Issue
Block a user