Skip to content

Commit

Permalink
feat: 안심구역 전체 정보 전달 응답 모델 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin0409 committed Jun 20, 2024
1 parent c0549c8 commit f6d8395
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions backend/fastapi/app/bodymodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ class dementiaResult(BaseModel):
class ReceiveDementiaInfoRequest(BaseModel):
name : str = Field(examples=["성춘향"])
phoneNumber : str = Field(examples=["010-1234-5678"])
fcmToken : str = Field(examples=["ksjdnfjkdasnfljsknafljansdfjlsakn"])

class ReceiveDementiaInfoResponse(BaseModel):
status: str = Field("success")
Expand Down Expand Up @@ -319,4 +318,15 @@ class groupKey(BaseModel):
class RegisterSafeAreaGroupResponse(BaseModel):
status: str = Field("success")
message: str = Field("메~시~지~")
result: groupKey
result: groupKey

class safeArea(BaseModel):
areaName : str = Field(examples=["집"])
latitude : float = Field(examples=["37.123456"])
longitude : float = Field(examples=["127.123456"])
radius : float = Field(examples=["0.5"], description="킬로미터 단위")

class GetSafeAreaAllResponse(BaseModel):
status: str = Field("success")
message: str = Field("메~시~지~")
result: List[safeArea]

0 comments on commit f6d8395

Please sign in to comment.