$ npm i egg-params --save
// {app_root}/config/plugin.js
exports.params = {
enable: true,
package: 'egg-params',
};
// {app_root}/config/config.default.js
exports.middleware = ['before', 'params', 'after']
see config/config.default.js for more detail.
async find() {
const { ctx } = this
ctx.body = await ctx.service.account.find(ctx.params)
}
Please open an issue here.