Update user photo logic
This commit is contained in:
+7
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user