- Added schemas, services, and routers for PROSEC, RCG2, Regulaciones, REIT, RequisitoPrevio, TLCS, and Vehiculos modules. - Each module includes search and get by ID functionalities. - Integrated FastAPI routers for each module into the main SITAR router. - Ensured proper response models using Pydantic for data validation.
25 lines
802 B
Python
25 lines
802 B
Python
"""ALADI2 Schemas"""
|
|
|
|
from typing import Optional
|
|
from pydantic import BaseModel, Field
|
|
|
|
|
|
class Aladi2Response(BaseModel):
|
|
"""ALADI2 (Asociación Latinoamericana de Integración)"""
|
|
|
|
FRACCION: Optional[str] = Field(None, max_length=10)
|
|
ACUERDO: Optional[str] = Field(None, max_length=49)
|
|
PAIS: Optional[str] = Field(None, max_length=3)
|
|
TASATXT: Optional[str] = Field(None, max_length=19)
|
|
TASANUM: Optional[str] = None
|
|
TASACALCULADA: Optional[str] = Field(None, max_length=19)
|
|
TIPOTASA: Optional[int] = None
|
|
DOF: Optional[str] = Field(None, max_length=8)
|
|
NOTAS: Optional[str] = Field(None, max_length=499)
|
|
OBSERVACIONES: Optional[str] = None
|
|
NICO: Optional[str] = Field(None, max_length=2)
|
|
SYSID: int
|
|
|
|
class Config:
|
|
from_attributes = True
|