后台:服务器维护

This commit is contained in:
luying
2021-12-08 10:25:21 +08:00
parent 103314a8bf
commit 22f8d3c438
29 changed files with 512 additions and 343 deletions

View File

@@ -2,19 +2,19 @@ import { Controller } from 'egg';
export default class GameController extends Controller {
public async getServerListByEnv() {
const { ctx } = this;
ctx.body = await ctx.service.game.getServerListByEnv();
return
}
// public async getServerListByEnv() {
// const { ctx } = this;
// ctx.body = await ctx.service.game.getServerListByEnv();
// return
// }
public async getServerList() {
const { ctx } = this;
const { page, pageSize, sortField, sortOrder, form } = ctx.request.body;
// public async getServerList() {
// const { ctx } = this;
// const { page, pageSize, sortField, sortOrder, form } = ctx.request.body;
ctx.body = await ctx.service.game.getServerList(page, pageSize, sortField, sortOrder, form);
return
}
// ctx.body = await ctx.service.game.getServerList(page, pageSize, sortField, sortOrder, form);
// return
// }
public async getRegions() {
const { ctx } = this;