import { MockAdapter } from '@/mock/mock-adapter';
const mock = MockAdapter.getInstance();

import Mock from 'mockjs'
const Random = Mock.Random;

// 获取应用数据
mock.onGet('v7/app-menuappmenu').reply((config: any) => {
    let status = MockAdapter.mockStatus(config);
    return [status, {
        name: 'db_appmenu1_appmenu',
        items:  [
            {
	id: '161CE06C-7FEB-4D3A-908A-EA2756104A50',
	name: 'menuitem1',
	text: '应用菜单',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '应用菜单',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: '',
	icon: '',
	textcls: '',
	appfunctag: '',
	resourcetag: '',
	items: [
		{
	id: '00926656-BCDE-45AF-B381-3B465E80D8EB',
	name: 'menuitem2',
	text: '打开文档',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '打开文档',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: 'fa fa-twitter',
	icon: '',
	textcls: '',
	appfunctag: 'AppFunc93',
	resourcetag: '',
},
	],
},
        ],
    }];
});

