event validations and event response models will be updated

This commit is contained in:
berkay 2024-12-12 17:12:18 +03:00
parent 1b15b77036
commit 6682d50228
1 changed files with 7 additions and 0 deletions

View File

@ -74,6 +74,10 @@ class BuildCreateEventMethods(MethodToEvent):
"a2271854-6b90-43da-a440-a62b70d90528": "build_create",
"b67ee709-0992-4604-9f90-fb1da10d5cf9": "create_building_employee",
}
__event_validation__ = {
"a2271854-6b90-43da-a440-a62b70d90528": InsertBuild,
"b67ee709-0992-4604-9f90-fb1da10d5cf9": InsertBuild,
}
@classmethod
def build_create(cls, data: InsertBuild, token_dict: EmployeeTokenObject):
@ -191,6 +195,9 @@ class BuildUpdateEventMethods(MethodToEvent):
__event_keys__ = {
"5ad38a66-1189-451e-babb-77de2d63d757": "build_update",
}
__event_validation__ = {
"5ad38a66-1189-451e-babb-77de2d63d757": UpdateBuild,
}
@classmethod
def build_update(