events started

This commit is contained in:
2025-01-31 13:58:40 +03:00
parent 1fe88e226a
commit 93db5eff72
16 changed files with 577 additions and 455 deletions

View File

@@ -7,7 +7,7 @@ from .models import ValidationsPydantic
from .function_handlers import RetrieveValidation
# Auth Login
# Validation Event
validation_event = Event(
name="validation_event",
key="02b5a596-14ba-4361-90d7-c6755727c63f",
@@ -23,3 +23,21 @@ def get_validation_by_event_function_code(request: Request, data: Any):
validation_event.endpoint_callable = get_validation_by_event_function_code
# Menu Event
menu_event = Event(
name="menu_event",
key="a1613ca0-4843-498b-bfff-07ecea6777b2",
request_validator=ValidationsPydantic,
language_models=[],
statics=None,
description="Get Left Menu of the user",
)
def get_menu_by_event_function_code(request: Request, data: Any):
return RetrieveValidation.retrieve_validation(data=data)
menu_event.endpoint_callable = get_menu_by_event_function_code