后台:修改服务器状态

This commit is contained in:
luying
2021-12-08 11:58:56 +08:00
parent aec83c1481
commit b51a2839da
9 changed files with 52 additions and 14 deletions

View File

@@ -38,6 +38,22 @@ export default class GameController extends Controller {
return
}
public async stopServerRegister() {
const { ctx } = this;
const { id } = ctx.request.body;
ctx.body = await ctx.service.game.stopServerRegister(id);
return
}
public async switchServerStatus() {
const { ctx } = this;
const { id, status } = ctx.request.body;
ctx.body = await ctx.service.game.switchServerStatus(id, status);
return
}
// public async getMaintenanceList() {
// const { ctx } = this;
// const {page, pageSize, sortField, sortOrder, form} = ctx.request.body;