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

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

// 获取应用数据
mock.onGet('v7/lite-indexappmenu').reply((config: any) => {
    let status = MockAdapter.mockStatus(config);
    return [status, {
        name: 'appmenu',
        items:  [
            {
	id: '4B9A341A-0A50-4997-84D8-16FA43CDED10',
	name: 'menuitem2',
	text: '数据源',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '数据源',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: '',
	icon: '',
	textcls: '',
	appfunctag: 'AppFunc2',
	resourcetag: '',
},
            {
	id: '4F6D513C-830B-4920-8D21-C7241EBC417D',
	name: 'menuitem1',
	text: '实体',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '实体',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: '',
	icon: '',
	textcls: '',
	appfunctag: 'AppFunc',
	resourcetag: '',
},
            {
	id: 'A9C57D33-0396-4595-AF22-4AB01652C900',
	name: 'menuitem9',
	text: '模型',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '模型',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: '',
	icon: '',
	textcls: '',
	appfunctag: 'AppFunc9',
	resourcetag: '',
},
            {
	id: '46AB50C7-6CDC-4CA9-ADB8-BB1CE8B2CF4D',
	name: 'menuitem6',
	text: '微服务',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '微服务',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: '',
	icon: '',
	textcls: '',
	appfunctag: 'AppFunc6',
	resourcetag: '',
},
            {
	id: '2465B8D8-0519-412B-9D34-1F3355FB9EAF',
	name: 'menuitem8',
	text: '接口',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '接口',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: '',
	icon: '',
	textcls: '',
	appfunctag: 'AppFunc8',
	resourcetag: '',
},
            {
	id: '6FBDA444-19F9-4382-BBED-AE16FB3C7DBE',
	name: 'menuitem5',
	text: '应用',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '应用',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: '',
	icon: '',
	textcls: '',
	appfunctag: 'AppFunc5',
	resourcetag: '',
},
            {
	id: '72F4E9D3-2443-49F9-85B4-6CC42A268322',
	name: 'menuitem7',
	text: '路由',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '路由',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: '',
	icon: '',
	textcls: '',
	appfunctag: 'AppFunc7',
	resourcetag: '',
},
            {
	id: 'E7008324-F31D-4CB7-B2E6-F3CE660996B0',
	name: 'menuitem3',
	text: '视图',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '视图',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: '',
	icon: '',
	textcls: '',
	appfunctag: 'AppFunc3',
	resourcetag: '',
},
            {
	id: '7B655FD1-69E0-4A81-9618-87B5F60DCB12',
	name: 'menuitem4',
	text: '组件',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '组件',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: '',
	icon: '',
	textcls: '',
	appfunctag: 'AppFunc4',
	resourcetag: '',
},
        ],
    }];
});

