渠道协议后台
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { UpdateChannelParam } from '@domain/backEndField/params';
|
||||
import { Controller } from 'egg';
|
||||
|
||||
export default class GameController extends Controller {
|
||||
@@ -56,6 +57,21 @@ export default class GameController extends Controller {
|
||||
return
|
||||
}
|
||||
|
||||
public async getChannelInfo() {
|
||||
const { ctx } = this;
|
||||
|
||||
ctx.body = await ctx.service.game.getChannelInfo();
|
||||
return
|
||||
}
|
||||
|
||||
public async updateChannel() {
|
||||
const { ctx } = this;
|
||||
const obj = ctx.request.body;
|
||||
let param = new UpdateChannelParam(obj?.values||{});
|
||||
ctx.body = await ctx.service.game.updateChannel(param);
|
||||
return
|
||||
}
|
||||
|
||||
public async getOnlineUsersByServer() {
|
||||
const { ctx } = this;
|
||||
ctx.body = await ctx.service.game.getOnlineUsersByServer();
|
||||
|
||||
Reference in New Issue
Block a user