后台:问卷

This commit is contained in:
luying
2022-04-02 20:56:25 +08:00
parent 89744aeb13
commit 3b2670dd75
6 changed files with 113 additions and 10 deletions

View File

@@ -114,6 +114,27 @@ export default class GameController extends Controller {
return
}
public async getSurveylist() {
const { ctx } = this;
const { page, pageSize, sortField, sortOrder, form } = ctx.request.body;
ctx.body = await ctx.service.game.getSurveylist(page, pageSize, sortField, sortOrder, form);
return
}
public async updateSurvey() {
const { ctx } = this;
const param = ctx.request.body;
ctx.body = await ctx.service.game.updateSurvey(param);
return
}
public async deleteSurvey() {
const { ctx } = this;
const param = ctx.request.body;
ctx.body = await ctx.service.game.deleteSurvey(param.code);
return
}
public async getAccuse() {
const { ctx } = this;
const { page, pageSize, sortField, sortOrder, form } = ctx.request.body;