- 'use strict';
- const Controller = require('egg').Controller;
- class AdminMenuController extends Controller {
- async queryUserMenu() {
- const res = await this.ctx.service.adminMenu.queryUserMenu(this.ctx.query);
- this.ctx.body = res;
- }
- async query() {
- const res = await this.ctx.service.adminMenu.query(this.ctx.query);
- this.ctx.body = res;
- }
- }
- module.exports = AdminMenuController;
|