Files
ZYZ/gm-server/app/controller/game.ts
2021-06-04 11:10:28 +08:00

41 lines
883 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
}
public async getDicTaskType() {
const { ctx } = this;
ctx.body = await ctx.service.game.getDicTaskType();
return
}
}