:
ctx.app
Controller, Helper, Service中都能使用this.app访问,例如this.app.config访问配置对象
Middleware中使用 ctx.app 访问...缺少API token,无效或者超时',
403: '用户得到授权,但是访问是被禁止的。',
404: '发出的请求针对的是不存在的记录,服务器没有进行操作。'...notEmpty: true, // 不允许空字符串
equals: 'specific value', // 只允许一个特定值
contains...// 只允许日期字符串
isAfter: "2011-11-05", // 只允许在特定日期之后的日期字符串
isBefore: "2011-11-05", /.../ 只允许在特定日期之前的日期字符串
max: 23, // 只允许值 <= 23
min: 23,