This commit is contained in:
2024-03-28 08:22:14 +03:00
parent 6ba041a839
commit a72eb31e07
19 changed files with 243 additions and 28 deletions

View File

@@ -19,6 +19,12 @@ class DealSummary(CustomModel):
client_name: str
changed_at: datetime.datetime
status: int
total_price: int
class DealServiceSchema(CustomModel):
id: int
quantity: int
# endregion Entities
@@ -45,6 +51,11 @@ class DealSummaryRequest(CustomModel):
pass
class DealAddServicesRequest(CustomModel):
deal_id: int
services: list[DealServiceSchema]
# endregion Requests
# region Responses
@@ -64,4 +75,8 @@ class DealQuickCreateResponse(CustomModel):
class DealSummaryResponse(CustomModel):
summaries: List[DealSummary]
class DealAddServicesResponse(CustomModel):
ok: bool
message: str
# endregion Responses