const { Controller } = require('egg'); class UserController extends Controller { async index() { const { ctx } = this; ctx.body = await ctx.service.user.index(ctx.request.body) } } module.exports = UserController;