feat(活动): 添加关注豪礼

This commit is contained in:
luying
2023-03-31 17:35:24 +08:00
parent 07b75c1510
commit 94b6dca4cc
15 changed files with 382 additions and 27 deletions

View File

@@ -251,4 +251,25 @@ export default class GameController extends Controller {
ctx.body = await ctx.service.game.getGVGConfig();
return
}
public async getLinks() {
const { ctx } = this;
const { types } = ctx.request.body;
ctx.body = await ctx.service.game.getLinks(types);
return
}
public async updateWXLink() {
const { ctx } = this;
const { serverId, link, qrCodeLink } = ctx.request.body;
ctx.body = await ctx.service.game.updateWXLink(serverId, link, qrCodeLink);
return
}
public async updateOtherLink() {
const { ctx } = this;
const { wxPublicAccountQrCode, bbsLink, customerLink } = ctx.request.body;
ctx.body = await ctx.service.game.updateOtherLink(wxPublicAccountQrCode, bbsLink, customerLink);
return
}
}