Update user photo logic

This commit is contained in:
IgorVolochay
2025-02-17 13:23:16 +03:00
parent 90c99c3f85
commit fc0074d962
2 changed files with 10 additions and 4 deletions
+7 -1
View File
@@ -1,3 +1,5 @@
import typing
from pydantic import BaseModel
@@ -7,7 +9,7 @@ class User(BaseModel):
first_name: str
last_name: str
photo_path: str
photo_id: str
activity: int = 0
liked_post_ids: list[int] = list()
@@ -15,3 +17,7 @@ class User(BaseModel):
comments_ids: list[int] = list()
registration_date: str
class BaseResponse(BaseModel):
result: typing.Any
error: bool = False