import { Controller } from 'egg' ; import { ApiResponseCode } from '../response/responseCode' ; import { ApiResponseMsg } from '../response/responseMsg' ; import ApiException from '../exception/ApiException' ; export default class HomeController extends Controller { public async queryList ( ) { console . log ( 'ff' ) ; throw new ApiException ( ApiResponseCode . SERVER_ERROR , ApiResponseMsg . SERVER_ERROR ) ; } }