后台:白名单

This commit is contained in:
luying
2021-12-08 20:45:06 +08:00
parent 46108f90f2
commit 24a9295ff3
7 changed files with 130 additions and 37 deletions
+24
View File
@@ -31,6 +31,30 @@ export default class GameController extends Controller {
return
}
public async getWhiteList() {
const { ctx } = this;
const { id } = ctx.request.body;
ctx.body = await ctx.service.game.getWhiteList(id);
return
}
public async updateWhiteList() {
const { ctx } = this;
const { id, code, type, content } = ctx.request.body;
ctx.body = await ctx.service.game.updateWhiteList(id, code, type, content);
return
}
public async deleteWhiteList() {
const { ctx } = this;
const { id, code } = ctx.request.body;
ctx.body = await ctx.service.game.deleteWhiteList(id, code);
return
}
public async getServers() {
const { ctx } = this;