后台:公告列表
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user