chore: added simple API response models
This commit is contained in:
parent
6316d635dd
commit
5c010a60b6
@ -61,3 +61,12 @@ class User(UserBase):
|
|||||||
class Config:
|
class Config:
|
||||||
orm_mode = True
|
orm_mode = True
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
class APISimpleSuccessResponse(BaseModel):
|
||||||
|
success: bool = True
|
||||||
|
|
||||||
|
class APISimpleErrorResponse(BaseModel):
|
||||||
|
success: bool = False
|
||||||
|
errors: Optional[List[str]]
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user