liufumingren 561cd27f81 初始化
2026-07-25 00:46:47 +08:00

17 lines
453 B
JavaScript

const { Controller } = require('egg');
class toolController extends Controller {
async index() {
const { ctx } = this;
ctx.body = await ctx.service.home.getUserinfo();
}
async backMsg(){
const { ctx } = this;
ctx.body = await ctx.service.tool.backMsg(ctx.request.body);
}
async createOrder(){
const { ctx } = this;
ctx.body = await ctx.service.tool.createOrder(ctx.request.body);
}
}
module.exports = toolController;