Files
ZYZ/gm-server/app/controller/game.ts
2021-06-01 19:33:15 +08:00

35 lines
751 B
TypeScript

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
}
public async getDicRMB() {
const { ctx } = this;
ctx.body = await ctx.service.game.getDicRmb();
return
}
public async getDicActivityType() {
const { ctx } = this;
ctx.body = await ctx.service.game.getDicActivityType();
return
}
}