Open semi-xi opened 4 years ago
处理用户的输入信息
拦截用户的请求,并在前后做一些事情
负责解析用户的输入,处理返回后的结果
// 固定挂载 this.ctx this.app this.service this.config this.logger
this.ctx.query this.ctx.queries this.ctx.params 不要搞混this.ctx.request.body 以及this.ctx.body 后面指的是this.cex.response.body
处理业务,并把业务结果封装返回给Controller 一般用于第三发服务的调用
Router
处理用户的输入信息
中间件
拦截用户的请求,并在前后做一些事情
Controller
负责解析用户的输入,处理返回后的结果
参数
Service
处理业务,并把业务结果封装返回给Controller 一般用于第三发服务的调用
schedule