'use strict'; const Controller = require('egg').Controller; const { CrudController } = require('naf-framework-mongoose-free/lib/controller'); const { BusinessError, ErrorCode } = require('naf-core').Error; const { ObjectId } = require('mongoose').Types; const _ = require('lodash'); // 项目测试及管理员登陆 class HomeController extends Controller { async index() { const { ctx } = this; ctx.body = 'hei!'; // const match_id = '630ec4700a92b0a015ccfd14'; // const group_id = '6318277947be96470e849b6a'; // const project_id = '631827f047be96470e849bc1'; // await this.ctx.service.matchTeamGroup.checkEliminate(match_id, group_id, project_id); } async util() { const body = this.ctx.request.body; const data = await this.ctx.service.eliminate.toNextRace(body); this.ctx.ok({ data }); } } module.exports = CrudController(HomeController, {});