Create add_user rout

And fix some bullshit
This commit is contained in:
IgorVolochay
2025-02-17 14:22:49 +03:00
parent 388c89cc40
commit 51cc2eb2b2
4 changed files with 33 additions and 22 deletions
+8
View File
@@ -0,0 +1,8 @@
import typing
from pydantic import BaseModel
class BaseResponse(BaseModel):
result: typing.Any
error: bool = False
+17
View File
@@ -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