后台:添加一下便于操作的内容

This commit is contained in:
luying
2021-12-31 16:26:59 +08:00
parent 4f9356c690
commit 096dad0185
7 changed files with 64 additions and 0 deletions
+6
View File
@@ -52,6 +52,12 @@ export default class ActivityController extends Controller {
return
}
public async createDefaultActivityGroupType() {
const { ctx } = this;
ctx.body = await ctx.service.activity.createDefaultActivityGroupType();
return
}
public async createGroup() {
const { ctx } = this;
ctx.body = await ctx.service.activity.createGroup();
+8
View File
@@ -9,6 +9,14 @@ export default class GameController extends Controller {
return
}
public async createRegion() {
const { ctx } = this;
const { values } = ctx.request.body;
ctx.body = await ctx.service.game.createRegion(values);
return
}
public async getRegionStategy() {
const { ctx } = this;
const { id } = ctx.request.body;