Se agregaron los moduloes de api_v2
This commit is contained in:
20
api/api_v2/modules/partidas/schemas.py
Normal file
20
api/api_v2/modules/partidas/schemas.py
Normal file
@@ -0,0 +1,20 @@
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
from schemas.CredencialSchema import CredencialBaseSchema
|
||||
from api.api_v2.modules.pedimentos.schemas import PedimentoBaseSchema
|
||||
|
||||
class PartidaBaseSchema(BaseModel):
|
||||
id: int
|
||||
numero: int
|
||||
|
||||
class PartidaRequestSchema(BaseModel):
|
||||
partida: PartidaBaseSchema
|
||||
pedimento: PedimentoBaseSchema
|
||||
credencial: CredencialBaseSchema
|
||||
|
||||
class PartidaListSchema(BaseModel):
|
||||
partidas: list[PartidaBaseSchema] = Field(..., description="Lista de partidas")
|
||||
pedimento: PedimentoBaseSchema
|
||||
credencial: CredencialBaseSchema
|
||||
|
||||
|
||||
Reference in New Issue
Block a user