This commit is contained in:
2024-03-05 04:58:26 +03:00
parent bf24c791fc
commit f5b7420fac
6 changed files with 81 additions and 23 deletions

View File

@@ -12,5 +12,10 @@ class ClientSearchRequest(CustomModel):
name: str
class ClientCreateRequest(CustomModel):
name: str
address: str
class ClientSearchResponse(CustomModel):
clients: List[ClientSchema]

View File

@@ -17,6 +17,18 @@ class DealCreateRequest(CustomModel):
name: str
class DealQuickCreateRequest(CustomModel):
name: str
client_name: str
client_address: str
comment: str
acceptance_date: datetime.datetime
class DealQuickCreateResponse(CustomModel):
deal_id: int
class DealCreateResponse(CustomModel):
ok: bool