crappy
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
from typing import List
|
||||
|
||||
from schemas.base import CustomModel, OkMessageSchema
|
||||
from schemas.base import CustomModelCamel, OkMessageSchema
|
||||
|
||||
|
||||
# region Entities
|
||||
class ServiceCategorySchema(CustomModel):
|
||||
class ServiceCategorySchema(CustomModelCamel):
|
||||
id: int
|
||||
name: str
|
||||
|
||||
|
||||
class ServiceSchema(CustomModel):
|
||||
class ServiceSchema(CustomModelCamel):
|
||||
id: int
|
||||
name: str
|
||||
category: ServiceCategorySchema
|
||||
@@ -20,11 +20,11 @@ class ServiceSchema(CustomModel):
|
||||
|
||||
|
||||
# region Requests
|
||||
class ServiceCreateRequest(CustomModel):
|
||||
class ServiceCreateRequest(CustomModelCamel):
|
||||
service: ServiceSchema
|
||||
|
||||
|
||||
class ServiceCreateCategoryRequest(CustomModel):
|
||||
class ServiceCreateCategoryRequest(CustomModelCamel):
|
||||
category: ServiceCategorySchema
|
||||
|
||||
|
||||
@@ -32,11 +32,11 @@ class ServiceCreateCategoryRequest(CustomModel):
|
||||
|
||||
|
||||
# region Responses
|
||||
class ServiceGetAllResponse(CustomModel):
|
||||
class ServiceGetAllResponse(CustomModelCamel):
|
||||
services: List[ServiceSchema]
|
||||
|
||||
|
||||
class ServiceGetAllCategoriesResponse(CustomModel):
|
||||
class ServiceGetAllCategoriesResponse(CustomModelCamel):
|
||||
categories: List[ServiceCategorySchema]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user