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

import Mock from 'mockjs'
const Random = Mock.Random;
// 基于 APP/src/mock/app/%CTRL_PKGPATH%-appmenu/%CTRL_PKGPATH%-appmenu.ts.ftl 生成
// 获取应用数据
mock.onGet('v7/app-index-viewappmenu').reply((config: any) => {
    let status = MockAdapter.mockStatus(config);
    return [status, {
        name: 'appmenu',
        items:  [
            {
	id: '6D010B99-E521-4723-B2CE-6F0BBF9CAA45',
	name: 'menuitem1',
	text: '菜单1',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '菜单1',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: '',
	icon: '',
	textcls: '',
	appfunctag: 'AppFunc66',
	resourcetag: '',
},
            {
	id: 'A5823AC8-C818-42F2-B5FB-C8C6B45E0CC5',
	name: 'menuitem2',
	text: '菜单2',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '菜单2',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: '',
	icon: '',
	textcls: '',
	appfunctag: 'UsrAppFunc1108357066',
	resourcetag: '',
},
            {
	id: 'CBA0A6CE-0592-432F-B7A3-93C8D23FE82B',
	name: 'menuitem3',
	text: '菜单3',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '菜单3',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: '',
	icon: '',
	textcls: '',
	appfunctag: 'Auto393',
	resourcetag: '',
},
            {
	id: 'E35F291C-5D2B-4851-B302-2B5533A57819',
	name: 'menuitem4',
	text: '菜单4',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '菜单4',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: '',
	icon: '',
	textcls: '',
	appfunctag: 'AppFunc31',
	resourcetag: '',
},
        ],
    }];
});

