后台:添加权限,添加排序

This commit is contained in:
luying
2021-06-08 20:34:36 +08:00
parent d1a4754fc5
commit 61dc5ea362
4 changed files with 29 additions and 21 deletions

View File

@@ -4,8 +4,8 @@ export default class ActivityController extends Controller {
public async getActivityList() {
const { ctx } = this;
const { page, pageSize, type, groupId, current, activityId } = ctx.request.body;
ctx.body = await ctx.service.activity.getActivityList(page, pageSize, type, groupId, current, activityId);
const { page, pageSize, type, groupId, current, activityId, sortField, sortOrder } = ctx.request.body;
ctx.body = await ctx.service.activity.getActivityList(page, pageSize, sortField, sortOrder, type, groupId, current, activityId);
return
}