Create add_user rout
And fix some bullshit
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import typing
|
||||
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class BaseResponse(BaseModel):
|
||||
result: typing.Any
|
||||
error: bool = False
|
||||
@@ -0,0 +1,17 @@
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class User(BaseModel):
|
||||
user_id: int
|
||||
username: str
|
||||
|
||||
first_name: str
|
||||
last_name: str
|
||||
photo_url: str
|
||||
|
||||
activity: int = 0
|
||||
liked_post_ids: list[int] = list()
|
||||
disliked_post_ids: list[int] = list()
|
||||
comments_ids: list[int] = list()
|
||||
|
||||
registration_date: str
|
||||
Reference in New Issue
Block a user