Skip to content

Controller common description

garevna edited this page Apr 27, 2021 · 3 revisions

dgtek-admin-dash

demo

App controller description

You can use inherited methods to send requests for the workers

Worker's response will be returned by event

Method params event returned comment
Auth
__auth login, password auth-success
__changePassword { login, userPhone, password } password-change
__resetPassword no params reset-password
__sendPasswordResetCode no params verification-code
Buildings
__getBuildingByAddress address building-data-received details
__getBuildingById id building-data-received details
__getBuildingsByStatus status building-list-received list
__postBuildingDetails details new-building-created id Create
__putBuildingDetails id, details buildings-data-saved Update
Services
__createNewService data new-service-created Create
__getListOfServices no params services-list-received Get
__getServiceDetails id service-data-received
__refreshServices no params services-list-refreshed *Refresh
__updateServiceDetails id, data service-data-updated Update
Tickets
__getCategories no params categories-received Get categories list
__putCategories data categories-updated Update
__refreshTickets no params tickets-list-refreshed
__saveTicketData id, data ticket-updated
__getTicketById id ticket-data-received
__getTickets no params tickets-list-received list
__postNewTicket data ticket-created
Customers
__refreshCustomers no params customers-list-refreshed
__getCustomers no params customers-list-received list
__getCustomerData id customer-data-received details
__postCustomer id, details customer-created id
__putCustomer details customer-updated
  • Refresh - Get data from remote server and refresh the local DB
  • Get - get the data from local DB
  • Update - Save details to remote server and refresh the local DB
  • Create - save the data to remote server and return the id of created resource
  • available building status values: lit, footprint, build, soon, other

Clone this wiki locally