后台:白名单
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user