import { Controller } from 'egg'; export default class GameController extends Controller { public async getServerEnv() { const { ctx } = this; ctx.body = await ctx.service.game.getServerEnv(); return } public async getServerListByEnv() { const { ctx } = this; ctx.body = await ctx.service.game.getServerListByEnv(); return } public async getDicHero() { const { ctx } = this; ctx.body = await ctx.service.game.getDicHero(); return } }