import { Controller } from 'egg' ; export default class ErrorController extends Controller { async list ( ) { const { ctx } = this ; ctx . body = await ctx . service . web . error . list ( ctx ) ; } async filterList ( ) { const { ctx } = this ; ctx . body = await ctx . service . web . error . filterList ( ctx ) ; } }