This commit is contained in:
2024-03-03 07:22:42 +03:00
parent 804b658c6e
commit d870f1cffe
27 changed files with 303 additions and 78 deletions

13
schemas/auth.py Normal file
View File

@@ -0,0 +1,13 @@
from schemas.base import CustomModel
class AuthLoginRequest(CustomModel):
auth_date: int
first_name: str
hash: str
id: int
photo_url: str
class AuthLoginResponse(CustomModel):
access_token: str

View File

@@ -1,9 +0,0 @@
from pydantic import BaseModel
class AuthLoginRequest(BaseModel):
auth_date: int
first_name: str
hash: str
id: int
photo_url: str

View File

@@ -1,6 +0,0 @@
from pydantic import BaseModel
class AuthLoginResponse(BaseModel):
jwt_token: str
ok: bool

View File

@@ -0,0 +1,5 @@
from pydantic import BaseModel
class CustomModel(BaseModel):
pass

18
schemas/deal.py Normal file
View File

@@ -0,0 +1,18 @@
from schemas.base import CustomModel
class DealChangeStatusRequest(CustomModel):
deal_id: int
new_status: int
class DealChangeStatusResponse(CustomModel):
ok: bool
class DealCreateRequest(CustomModel):
name: str
class DealCreateResponse(CustomModel):
ok: bool