adminMenu.js 403 B

123456789101112131415
  1. 'use strict';
  2. const Controller = require('egg').Controller;
  3. class AdminMenuController extends Controller {
  4. async queryUserMenu() {
  5. const res = await this.ctx.service.adminMenu.queryUserMenu(this.ctx.query);
  6. this.ctx.body = res;
  7. }
  8. async query() {
  9. const res = await this.ctx.service.adminMenu.query(this.ctx.query);
  10. this.ctx.body = res;
  11. }
  12. }
  13. module.exports = AdminMenuController;