后台:操作活动组类型

This commit is contained in:
luying
2021-06-17 20:16:43 +08:00
parent ab38a171d4
commit 7132468b86
6 changed files with 51 additions and 2 deletions
+14
View File
@@ -40,6 +40,20 @@ export default class ActivityController extends Controller {
return
}
public async updateActivityGroupType() {
const { ctx } = this;
const { groupType, groupTypeName, activityTypes } = ctx.request.body;
ctx.body = await ctx.service.activity.updateActivityGroupType(groupType, groupTypeName, activityTypes);
return
}
public async deleteActivityGroupType() {
const { ctx } = this;
const { groupType } = ctx.request.body;
ctx.body = await ctx.service.activity.deleteActivityGroupType(groupType);
return
}
public async updateActivityGroupName() {
const { ctx } = this;
const { groupId, groupName } = ctx.request.body;