Your goal is to build a simple controller that will know which model and function to run, and then return a JSON object as a response that is usable on the far end of the transaction.
您的目标是构建这样一个简单的控制器:它知道应该运行哪个模型和函数,然后返回一个 JSON 对象作为响应,这个响应可用于事务的远端。
On the server side, code must unwrap the request to determine the call/parameters, then execute the call, receive the response, rewrap the response, and return it to the client.
在服务器端,代码必须打开请求以确定调用/参数,然后执行调用,接收响应,重新封装响应,并将其返回给客户机。
Other routers such as the chaining router do not require that you set synchronous to true on the outbound endpoint and always return a response in synchronous scenarios.
其它的路由器,比如chaining路由器并不需将出站端点的synchronous属性设置为true,该路由器总会在同步的场景中返回一个响应。
应用推荐