auth service up running
This commit is contained in:
@@ -6,16 +6,11 @@ from api_validations.validations_request import (
|
||||
UpdateAccountRecord,
|
||||
ListOptions,
|
||||
)
|
||||
|
||||
from ApiServices.api_handlers import AlchemyJsonResponse
|
||||
from api_events.events.abstract_class import MethodToEvent, ActionsSchema
|
||||
from api_objects.auth.token_objects import EmployeeTokenObject, OccupantTokenObject
|
||||
from api_validations.validations_response.account import AccountListResponse
|
||||
from api_validations.validations_response.account_responses import AccountRecordsListResponse
|
||||
from databases import (
|
||||
AccountRecords,
|
||||
BuildIbans,
|
||||
)
|
||||
from api_validations.validations_response import AccountRecordResponse
|
||||
from databases import AccountRecords, BuildIbans
|
||||
from databases.sql_models.building.build import BuildLivingSpace
|
||||
from databases.sql_models.building.decision_book import BuildDecisionBookPayments
|
||||
from databases.sql_models.others.enums import ApiEnumDropdown
|
||||
@@ -32,8 +27,8 @@ class AccountRecordsListEventMethods(MethodToEvent):
|
||||
"208e6273-17ef-44f0-814a-8098f816b63a": "account_records_list_flt_res",
|
||||
}
|
||||
__event_validation__ = {
|
||||
"7192c2aa-5352-4e36-98b3-dafb7d036a3d": AccountRecordsListResponse,
|
||||
"208e6273-17ef-44f0-814a-8098f816b63a": AccountRecordsListResponse,
|
||||
"7192c2aa-5352-4e36-98b3-dafb7d036a3d": AccountRecordResponse,
|
||||
"208e6273-17ef-44f0-814a-8098f816b63a": AccountRecordResponse,
|
||||
}
|
||||
|
||||
@classmethod
|
||||
@@ -59,7 +54,7 @@ class AccountRecordsListEventMethods(MethodToEvent):
|
||||
result=records,
|
||||
cls_object=AccountRecords,
|
||||
filter_attributes=list_options,
|
||||
response_model=AccountRecordsListResponse
|
||||
response_model=AccountRecordResponse
|
||||
)
|
||||
|
||||
@classmethod
|
||||
|
||||
Reference in New Issue
Block a user