后台:添加跑马灯

This commit is contained in:
luying
2021-07-02 19:24:39 +08:00
parent d2e7edabea
commit 4d9c5482ac
4 changed files with 84 additions and 0 deletions

View File

@@ -73,6 +73,20 @@ export default class GameController extends Controller {
return
}
public async getMarqueeList() {
const { ctx } = this;
const { page, pageSize, sortField, sortOrder, form } = ctx.request.body;
ctx.body = await ctx.service.game.getMarqueeList(page, pageSize, sortField, sortOrder, form);
return
}
public async updateMarquee() {
const { ctx } = this;
const { code, values } = ctx.request.body;
ctx.body = await ctx.service.game.updateMarquee(code, values);
return
}
public async getDicHero() {
const { ctx } = this;
ctx.body = await ctx.service.game.getDicHero();