后台:公告列表

This commit is contained in:
luying
2021-06-30 20:45:14 +08:00
parent 221b138896
commit 5c862d0f77
6 changed files with 98 additions and 3 deletions
+21
View File
@@ -52,6 +52,27 @@ export default class GameController extends Controller {
return
}
public async getNoticeList() {
const { ctx } = this;
const { page, pageSize, sortField, sortOrder, form } = ctx.request.body;
ctx.body = await ctx.service.game.getNoticeList(page, pageSize, sortField, sortOrder, form);
return
}
public async updateNotice() {
const {ctx} = this;
const { id, values } = ctx.request.body;
ctx.body = await ctx.service.game.updateNotice(id, values);
return
}
public async delNotice() {
const {ctx} = this;
const { id } = ctx.request.body;
ctx.body = await ctx.service.game.delNotice(id);
return
}
public async getDicHero() {
const { ctx } = this;
ctx.body = await ctx.service.game.getDicHero();