const { Controller } = require('egg'); class homeController extends Controller { async index() { const { ctx } = this; ctx.body = 1; ctx.page = true; } async exportWmsMonthOrderFile(){ const { ctx } = this; const parmas = ctx.request.body; ctx.body = await ctx.service.home.exportWmsMonthOrderFile(parmas.month); } } module.exports = homeController;