- 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.
27 lines
819 B
Python
27 lines
819 B
Python
"""RCG2 Schemas"""
|
|
|
|
from typing import Optional
|
|
from pydantic import BaseModel, Field
|
|
|
|
|
|
class Rcg2Response(BaseModel):
|
|
"""Reglas de Carácter General"""
|
|
|
|
FRACCION: Optional[str] = Field(None, max_length=10)
|
|
ANEXO: Optional[str] = Field(None, max_length=19)
|
|
SECTOR: Optional[str] = None
|
|
REGIMEN: Optional[str] = None
|
|
CONDICION: Optional[str] = None
|
|
ADUANAS: Optional[str] = Field(None, max_length=1000)
|
|
DOF: Optional[str] = Field(None, max_length=8)
|
|
ARCHIVOCRITERIO: Optional[str] = Field(None, max_length=1000)
|
|
TIPO: Optional[str] = Field(None, max_length=1)
|
|
IMPO: Optional[int] = None
|
|
EXPO: Optional[int] = None
|
|
WEB_DOCUMENTO_ID: Optional[int] = None
|
|
NICO: Optional[str] = Field("", max_length=2)
|
|
SYSID: int
|
|
|
|
class Config:
|
|
from_attributes = True
|