parent
d0c8c6c297
commit
75f5bc79da
4 changed files with 59 additions and 20 deletions
|
|
@ -9,6 +9,9 @@ from pydantic import ConfigDict
|
|||
|
||||
from src.schemas import CustomBaseModel
|
||||
|
||||
class ServiceIDMixin(CustomBaseModel):
|
||||
service_id: int
|
||||
|
||||
class ServiceResponse(CustomBaseModel):
|
||||
model_config = ConfigDict(from_attributes=True, extra="ignore")
|
||||
|
||||
|
|
@ -27,5 +30,11 @@ class ServicePostServiceRequest(CustomBaseModel):
|
|||
class ServicePostServiceResponse(CustomBaseModel):
|
||||
service: ServiceWithKeyResponse
|
||||
|
||||
class ServicePatchKeyRequest(ServiceIDMixin):
|
||||
pass
|
||||
|
||||
class ServicePatchKeyResponse(CustomBaseModel):
|
||||
service: ServiceWithKeyResponse
|
||||
|
||||
class ServiceDeleteServiceRequest(ServiceIDMixin):
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue