16 lines
395 B
JavaScript
16 lines
395 B
JavaScript
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; |