Files
thisORthat/app/schemas/api_schemas.py
T
2025-02-19 16:21:06 +03:00

16 lines
277 B
Python

import typing
from pydantic import BaseModel, NonNegativeInt
class BaseResponse(BaseModel):
result: typing.Any
error: bool = False
class AddUserBody(BaseModel):
user_id: NonNegativeInt
username: str
first_name: str
last_name: str
photo_url: str