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,{
                "paytradeeditview": {
            "title": "支付交易编辑视图",
            "caption": "支付交易",
            "viewtype": "DEEDITVIEW",
            "viewmodule": "pay",
            "viewname": "PayTradeEditView",
            "viewtag": "1ebd898d7c9c1d6c0f9f6c2944e92148"
        },
        "payopenaccesspickupgridview": {
            "title": "支付平台选择表格视图",
            "caption": "支付平台",
            "viewtype": "DEPICKUPGRIDVIEW",
            "viewmodule": "pay",
            "viewname": "PayOpenAccessPickupGridView",
            "viewtag": "32bd7f047dffe91d62357bff08f6e5d1"
        },
        "payindexview": {
            "title": "pay",
            "caption": "ibizlab",
            "viewtype": "APPINDEXVIEW",
            "viewmodule": "pay",
            "viewname": "PayIndexView",
            "viewtag": "48CC4447-52C4-4B23-810E-1C0E2465A0D7"
        },
        "paytradegridview": {
            "title": "支付交易表格视图",
            "caption": "支付交易",
            "viewtype": "DEGRIDVIEW",
            "viewmodule": "pay",
            "viewname": "PayTradeGridView",
            "viewtag": "6e9610d7cd8dc92a1305216e416207c0"
        },
        "payopenaccesseditview": {
            "title": "支付平台编辑视图",
            "caption": "支付平台",
            "viewtype": "DEEDITVIEW",
            "viewmodule": "pay",
            "viewname": "PayOpenAccessEditView",
            "viewtag": "8bbba1ab4ef6cfce89b59175e1efecd0"
        },
        "payopenaccesspickupview": {
            "title": "支付平台数据选择视图",
            "caption": "支付平台",
            "viewtype": "DEPICKUPVIEW",
            "viewmodule": "pay",
            "viewname": "PayOpenAccessPickupView",
            "viewtag": "94f275381f7b5d6c18c715afdba9b484"
        },
        "payopenaccessgridview": {
            "title": "支付平台表格视图",
            "caption": "支付平台",
            "viewtype": "DEGRIDVIEW",
            "viewmodule": "pay",
            "viewname": "PayOpenAccessGridView",
            "viewtag": "c6788e489ffbe107540ffa19650faf5a"
        }
    }];
});