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

import Mock from 'mockjs'

// 获取全部数组
mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
    let status = MockAdapter.mockStatus(config);
    return [status, [
        {
        srfkey: 'CLPermissionType',
        emptytext: '未定义',
        "codelisttype":"static",
        items: [
            {
                id: 'APPMENU',
                label: '应用菜单',
                text: '应用菜单',
                "data":"",
                "codename":"Appmenu",
                value: 'APPMENU',
                
                disabled: false,
            },
            {
                id: 'OPPRIV',
                label: '数据能力',
                text: '数据能力',
                "data":"",
                "codename":"Oppriv",
                value: 'OPPRIV',
                
                disabled: false,
            },
            {
                id: 'UNIRES',
                label: '统一资源',
                text: '统一资源',
                "data":"",
                "codename":"Unires",
                value: 'UNIRES',
                
                disabled: false,
            },
        ]
    },
    {
        srfkey: 'CLSourceType',
        emptytext: '未定义',
        "codelisttype":"static",
        items: [
            {
                id: 'DEACTION',
                label: '实体行为',
                text: '实体行为',
                "data":"",
                "codename":"Deaction",
                value: 'DEACTION',
                
                disabled: false,
            },
            {
                id: 'DATASET',
                label: '数据集合',
                text: '数据集合',
                "data":"",
                "codename":"Dataset",
                value: 'DATASET',
                
                disabled: false,
            },
        ]
    }
    ]];
});

