后台:修改服务器状态
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user