text: const { resultData } = require('../common/utils')
  
  const getMenuData = async ctx => {
    const ret = {}
    const data = [
      {
        resId: 37,
        resType: 5,
        name: 'Menu1_1',
        fullName: '首页',
        icon: null,
        url: '',
        remark: 'Menu1_1',
        children: [
          {
            resId: 67,
            resType: 2,
            name: 'Home',
            fullName: '首页',
            icon: 'el-icon-picture',
            url: '/Home',
            remark: 'Home',
            children: null,
          },
          {
            resId: 63,
            resType: 5,
            name: 'Menu1_2',
            fullName: '首页1——1',
            icon: 'el-icon-tickets',
            url: '',
            remark: 'Menu1_2',
            children: [
              {
                resId: 67,
                resType: 2,
                name: 'User',
                fullName: '用户管理',
                icon: null,
                url: '/User',
                remark: 'User',
                children: null,
              },
              {
                resId: 68,
                resType: 2,
                name: 'Chart',
                fullName: '图表',
                icon: null,
                url: '/Chart',
                remark: 'Chart',
                children: null,
              },
              {
                resId: 70,
                resType: 2,
                name: 'NotFound',
                fullName: '无匹配路由页面',
                icon: null,
                url: '/NotFound',
                remark: 'NotFound',
                children: null,
              },
            ],
          },
        ],
      },
      {
        resId: 34,
        resType: 5,
        name: 'Menu2_1',
        fullName: 'yush',
        icon: null,
        url: '',
        remark: 'Menu2_1',
        children: [
          {
            resId: 38,
            resType: 5,
            name: 'Menu2_2',
            fullName: 'yushPage',
            icon: 'el-icon-bell',
            url: '/Lalala',
            remark: 'Menu2_2',
          },
        ],
      },
    ]
    Object.assign(ret, resultData, {
      data,
    })
    ctx.response.body = ret
  }
  
  module.exports = {
    'GET /menu/getMenuData': getMenuData,
  }
  