chore: added simple API response models

This commit is contained in:
surtur 2020-08-07 02:31:01 +02:00
parent 6316d635dd
commit 5c010a60b6
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

@ -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]]