Skip to content

Commit

Permalink
fix: change ReportUser & ReportResponse model
Browse files Browse the repository at this point in the history
  • Loading branch information
nahyun0121 committed Dec 3, 2023
1 parent 16f43dd commit c94db90
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/models/domain/reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@


class ReportUser(BaseModel):
reported_user_name: str
reported_id: int
reason: str


class ReportResponse(BaseModel):
class ReportResponse(ReportUser):
reporter_id: int
reported_id: int
reason: str

class Config:
orm_mode = True

0 comments on commit c94db90

Please sign in to comment.