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

import Mock from 'mockjs'

// 获取studio链接数据
mock.onGet('./assets/json/view-config.json').reply((config: any) => {
    let status = MockAdapter.mockStatus(config);
    return [status,{
                "psgridview": {
            "title": "采购单表格视图",
            "caption": "采购单",
            "viewtype": "DEGRIDVIEW",
            "viewmodule": "Module",
            "viewname": "PSGridView",
            "viewtag": "1f3439519475b1efe65b5f980ca4caa6"
        },
        "appindexview": {
            "title": "应用首页视图",
            "caption": "首页",
            "viewtype": "APPINDEXVIEW",
            "viewmodule": "Ungroup",
            "viewname": "AppIndexView",
            "viewtag": "2530708d453013b497aebeb7a0a9cd7c"
        },
        "pseditview": {
            "title": "采购单编辑视图",
            "caption": "采购单",
            "viewtype": "DEEDITVIEW",
            "viewmodule": "Module",
            "viewname": "PSEditView",
            "viewtag": "cbe3b85eb51cf165ed3bffc22c8f37e9"
        }
    }];
});