后台:从活动组选择活动

This commit is contained in:
luying
2021-06-19 10:10:44 +08:00
parent 5fcc953d7c
commit 70b5b59912
3 changed files with 85 additions and 11 deletions

View File

@@ -61,6 +61,13 @@ export default class ActivityController extends Controller {
return
}
public async getGroupDataById() {
const { ctx } = this;
const { groupId } = ctx.request.body;
ctx.body = await ctx.service.activity.getGroupDataById(groupId);
return
}
public async updateActivityGroupName() {
const { ctx } = this;
const { groupId, groupName } = ctx.request.body;
@@ -75,6 +82,13 @@ export default class ActivityController extends Controller {
return
}
public async saveSingleActivityToGroup() {
const { ctx } = this;
const { groupId, index, activityId } = ctx.request.body;
ctx.body = await ctx.service.activity.saveSingleActivityToGroup(groupId, index, activityId);
return
}
public async saveGroupToServer() {
const { ctx } = this;
const { groupId, serverIds } = ctx.request.body;