Interface.ResourceHook
12003resourceHook
Pre-execute and post-execute service methods before or after operations on the resource table resourceData, allowing execution of Service before or after database operations.
Reference Use Case
{ "before": [{ "service": "service file name", "serviceFunction": "service method name" }], "after": [{ "service": "service file name", "serviceFunction": "service method name" }] }before: Before thesqlexecution, the framework middlewarehttpResourceHook.jswill read and run theservicemethod.after: After thesqlexecution, the framework middlewarehttpResourceHook.jswill read and run theservicemethod.